From 217e0391609f18725d7d6267045b21960bd81faa Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Mon, 7 Dec 2009 07:06:19 +0100 Subject: Add function to get index value from DHCP structure --- src/dhcp.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/dhcp.c') diff --git a/src/dhcp.c b/src/dhcp.c index 93401d7b..f0f28e42 100644 --- a/src/dhcp.c +++ b/src/dhcp.c @@ -63,6 +63,17 @@ void connman_dhcp_unref(struct connman_dhcp *dhcp) g_free(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 -- cgit v1.2.3