28 #ifndef __LWIP_NETIFAPI_H__
29 #define __LWIP_NETIFAPI_H__
44 typedef void (*netifapi_void_fn)(
struct netif *
netif);
47 struct netifapi_msg_msg {
48 #if !LWIP_TCPIP_CORE_LOCKING
63 netifapi_void_fn voidfunc;
64 netifapi_errt_fn errtfunc;
70 void (*
function)(
struct netifapi_msg_msg *msg);
71 struct netifapi_msg_msg msg;
90 netifapi_void_fn voidfunc,
91 netifapi_errt_fn errtfunc);
93 #define netifapi_netif_remove(n) netifapi_netif_common(n, netif_remove, NULL)
94 #define netifapi_netif_set_up(n) netifapi_netif_common(n, netif_set_up, NULL)
95 #define netifapi_netif_set_down(n) netifapi_netif_common(n, netif_set_down, NULL)
96 #define netifapi_netif_set_default(n) netifapi_netif_common(n, netif_set_default, NULL)
97 #define netifapi_dhcp_start(n) netifapi_netif_common(n, NULL, dhcp_start)
98 #define netifapi_dhcp_stop(n) netifapi_netif_common(n, dhcp_stop, NULL)
99 #define netifapi_autoip_start(n) netifapi_netif_common(n, NULL, autoip_start)
100 #define netifapi_autoip_stop(n) netifapi_netif_common(n, NULL, autoip_stop)