[PATCH 1/4] Add help function __connman_ipconfig_set_index()

martin.xu at intel.com martin.xu at intel.com
Sun Apr 11 23:35:03 PDT 2010


From: Martin Xu <martin.xu at intel.com>

---
 src/connman.h  |    1 +
 src/ipconfig.c |    5 +++++
 2 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/connman.h b/src/connman.h
index d2de80a..16ded2d 100644
--- a/src/connman.h
+++ b/src/connman.h
@@ -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);
diff --git a/src/ipconfig.c b/src/ipconfig.c
index 9529846..4e4e095 100644
--- a/src/ipconfig.c
+++ b/src/ipconfig.c
@@ -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:
  *
-- 
1.6.1.3




More information about the connman mailing list