diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2009-12-07 07:06:19 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2009-12-07 07:06:19 +0100 |
commit | 217e0391609f18725d7d6267045b21960bd81faa (patch) | |
tree | 6ed7a1d661343a9a900a7045b32f75fafa40eadd | |
parent | d1e0502b8eeb0faa63611b8031f9577f20194d1f (diff) | |
download | connman-217e0391609f18725d7d6267045b21960bd81faa.tar.gz connman-217e0391609f18725d7d6267045b21960bd81faa.tar.bz2 connman-217e0391609f18725d7d6267045b21960bd81faa.zip |
Add function to get index value from DHCP structure
-rw-r--r-- | include/dhcp.h | 1 | ||||
-rw-r--r-- | src/dhcp.c | 11 |
2 files changed, 12 insertions, 0 deletions
diff --git a/include/dhcp.h b/include/dhcp.h index 7651293e..2d6704ca 100644 --- a/include/dhcp.h +++ b/include/dhcp.h @@ -45,6 +45,7 @@ struct connman_dhcp; struct connman_dhcp *connman_dhcp_ref(struct connman_dhcp *dhcp); void connman_dhcp_unref(struct connman_dhcp *dhcp); +int connman_dhcp_get_index(struct connman_dhcp *dhcp); char *connman_dhcp_get_interface(struct connman_dhcp *dhcp); void connman_dhcp_bound(struct connman_dhcp *dhcp); @@ -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 * |