mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2025-08-04 21:44:38 +08:00
Update tcpip.c/.h documentation
This commit is contained in:
parent
30a2283993
commit
d62d3edc08
@ -252,6 +252,7 @@ tcpip_input(struct pbuf *p, struct netif *inp)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @ingroup lwip_os
|
||||||
* Call a specific function in the thread context of
|
* Call a specific function in the thread context of
|
||||||
* tcpip_thread for easy access synchronization.
|
* tcpip_thread for easy access synchronization.
|
||||||
* A function called in that way may access lwIP core code
|
* 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
|
* Call a specific function in the thread context of
|
||||||
* tcpip_thread for easy access synchronization.
|
* tcpip_thread for easy access synchronization.
|
||||||
* A function called in that way may access lwIP core code
|
* A function called in that way may access lwIP core code
|
||||||
|
@ -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_try_callback(tcpip_callback_fn function, void *ctx);
|
||||||
err_t tcpip_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))
|
#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);
|
struct tcpip_callback_msg* tcpip_callbackmsg_new(tcpip_callback_fn function, void *ctx);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user