From: Julien Massot Date: Fri, 10 Dec 2010 11:00:35 +0000 (+0000) Subject: dhcp: Add function to clear DHCP configuration X-Git-Tag: 0.65~66 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8319638c7ec38544ceec1321766a57cc8ebfa470;p=platform%2Fupstream%2Fconnman.git dhcp: Add function to clear DHCP configuration --- diff --git a/include/dhcp.h b/include/dhcp.h index e10f874..ce3e6f4 100644 --- a/include/dhcp.h +++ b/include/dhcp.h @@ -57,6 +57,7 @@ void connman_dhcp_set_value(struct connman_dhcp *dhcp, void connman_dhcp_bound(struct connman_dhcp *dhcp); void connman_dhcp_renew(struct connman_dhcp *dhcp); +void connman_dhcp_release(struct connman_dhcp *dhcp); void connman_dhcp_fail(struct connman_dhcp *dhcp); void *connman_dhcp_get_data(struct connman_dhcp *dhcp); diff --git a/src/dhcp.c b/src/dhcp.c index 273912b..36e2ff5 100644 --- a/src/dhcp.c +++ b/src/dhcp.c @@ -186,6 +186,19 @@ void connman_dhcp_renew(struct connman_dhcp *dhcp) } /** + * connman_dhcp_release: + * @dhcp: DHCP structure + * + * Report DHCP release of the interface + */ +void connman_dhcp_release(struct connman_dhcp *dhcp) +{ + DBG("dhcp %p", dhcp); + + connman_element_unregister_children(dhcp->element); +} + +/** * connman_dhcp_fail: * @dhcp: DHCP structure *