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 /src/dhcp.c | |
parent | d1e0502b8eeb0faa63611b8031f9577f20194d1f (diff) | |
download | connman-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.c | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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 * |