summaryrefslogtreecommitdiff
path: root/src/dhcp.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2009-12-07 07:06:19 +0100
committerMarcel Holtmann <marcel@holtmann.org>2009-12-07 07:06:19 +0100
commit217e0391609f18725d7d6267045b21960bd81faa (patch)
tree6ed7a1d661343a9a900a7045b32f75fafa40eadd /src/dhcp.c
parentd1e0502b8eeb0faa63611b8031f9577f20194d1f (diff)
downloadconnman-217e0391609f18725d7d6267045b21960bd81faa.tar.gz
connman-217e0391609f18725d7d6267045b21960bd81faa.tar.bz2
connman-217e0391609f18725d7d6267045b21960bd81faa.zip
Add function to get index value from DHCP structure
Diffstat (limited to 'src/dhcp.c')
-rw-r--r--src/dhcp.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/dhcp.c b/src/dhcp.c
index 93401d7b..f0f28e42 100644
--- a/src/dhcp.c
+++ b/src/dhcp.c
@@ -64,6 +64,17 @@ void connman_dhcp_unref(struct connman_dhcp *dhcp)
}
/**
+ * connman_dhcp_get_index:
+ * @dhcp: DHCP structure
+ *
+ * Get network index of DHCP
+ */
+int connman_dhcp_get_index(struct connman_dhcp *dhcp)
+{
+ return dhcp->index;
+}
+
+/**
* connman_dhcp_get_interface:
* @dhcp: DHCP structure
*