netifapi: Eliminate wrapper struct netifapi_msg and rename netifapi_msg_msg to netifapi_msg

This commit is contained in:
Dirk Ziegelmeier
2016-03-07 21:16:19 +01:00
parent fc17d02451
commit eab92ccb03
2 changed files with 35 additions and 43 deletions

View File

@@ -49,7 +49,7 @@ extern "C" {
typedef void (*netifapi_void_fn)(struct netif *netif);
typedef err_t (*netifapi_errt_fn)(struct netif *netif);
struct netifapi_msg_msg {
struct netifapi_msg {
#if !LWIP_TCPIP_CORE_LOCKING
sys_sem_t sem;
#endif /* !LWIP_TCPIP_CORE_LOCKING */
@@ -73,11 +73,6 @@ struct netifapi_msg_msg {
} msg;
};
struct netifapi_msg {
void (* function)(void *msg);
struct netifapi_msg_msg msg;
};
/* API for application */
err_t netifapi_netif_add(struct netif *netif,