autoip: add autoip_remove_struct

Added previously-missing autoip_remove_struct as a companion to
autoip_set_struct and to parallel dhcp_{set,remove}_struct.
This commit is contained in:
Grant Erickson 2013-04-27 12:20:29 -07:00 committed by Simon Goldschmidt
parent 26911ff21c
commit 8ae472821f

View File

@ -94,6 +94,9 @@ struct autoip
/** Set a struct autoip allocated by the application to work with */
void autoip_set_struct(struct netif *netif, struct autoip *autoip);
/** Remove a struct autoip previously set to the netif using autoip_set_struct() */
#define autoip_remove_struct(netif) do { (netif)->autoip = NULL; } while (0)
/** Start AutoIP client */
err_t autoip_start(struct netif *netif);