Add __connman_ipconfig_set_index() helper
authorMartin Xu <martin.xu@intel.com>
Mon, 12 Apr 2010 06:35:03 +0000 (14:35 +0800)
committerSamuel Ortiz <sameo@linux.intel.com>
Tue, 13 Apr 2010 13:51:21 +0000 (15:51 +0200)
src/connman.h
src/ipconfig.c

index d2de80a..16ded2d 100644 (file)
@@ -215,6 +215,7 @@ void __connman_ipconfig_foreach(void (*function) (int index, void *user_data),
 unsigned short __connman_ipconfig_get_type(int index);
 unsigned int __connman_ipconfig_get_flags(int index);
 const char *__connman_ipconfig_get_gateway(int index);
+void __connman_ipconfig_set_index(struct connman_ipconfig *ipconfig, int index);
 
 int __connman_ipconfig_enable(struct connman_ipconfig *ipconfig);
 int __connman_ipconfig_disable(struct connman_ipconfig *ipconfig);
index 9529846..4e4e095 100644 (file)
@@ -715,6 +715,11 @@ const char *__connman_ipconfig_get_gateway(int index)
        return ipdevice->gateway;
 }
 
+void __connman_ipconfig_set_index(struct connman_ipconfig *ipconfig, int index)
+{
+       ipconfig->index = index;
+}
+
 /**
  * connman_ipconfig_create:
  *