Update tcpip.c/.h documentation

This commit is contained in:
Dirk Ziegelmeier 2017-07-12 11:08:35 +02:00
parent 30a2283993
commit d62d3edc08
2 changed files with 5 additions and 1 deletions

View File

@ -252,6 +252,7 @@ tcpip_input(struct pbuf *p, struct netif *inp)
}
/**
* @ingroup lwip_os
* Call a specific function in the thread context of
* tcpip_thread for easy access synchronization.
* A function called in that way may access lwIP core code
@ -286,6 +287,7 @@ tcpip_callback(tcpip_callback_fn function, void *ctx)
}
/**
* @ingroup lwip_os
* Call a specific function in the thread context of
* tcpip_thread for easy access synchronization.
* A function called in that way may access lwIP core code

View File

@ -79,7 +79,9 @@ err_t tcpip_input(struct pbuf *p, struct netif *inp);
err_t tcpip_try_callback(tcpip_callback_fn function, void *ctx);
err_t tcpip_callback(tcpip_callback_fn function, void *ctx);
/* for compatibility with older lwIP versions */
/** @ingroup lwip_os
* @deprecated use tcpip_try_callback() or tcpip_callback() instead
*/
#define tcpip_callback_with_block(function, ctx, block) ((block != 0)? tcpip_callback(function, ctx) : tcpip_try_callback(function, ctx))
struct tcpip_callback_msg* tcpip_callbackmsg_new(tcpip_callback_fn function, void *ctx);