mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
Merge pull request #9302 from miri64/gnrc_netreg/doc/enhance-register-pre
gnrc_netreg: Further specify gnrc_netreg_register() precondition
This commit is contained in:
commit
4ddbf43226
@ -305,7 +305,9 @@ static inline void gnrc_netreg_entry_init_cb(gnrc_netreg_entry_t *entry,
|
|||||||
* @warning Call gnrc_netreg_unregister() *before* you leave the context you
|
* @warning Call gnrc_netreg_unregister() *before* you leave the context you
|
||||||
* allocated @p entry in. Otherwise it might get overwritten.
|
* allocated @p entry in. Otherwise it might get overwritten.
|
||||||
*
|
*
|
||||||
* @pre The calling thread must provide a message queue.
|
* @pre The calling thread must provide a [message queue](@ref msg_init_queue)
|
||||||
|
* when using @ref GNRC_NETREG_TYPE_DEFAULT for gnrc_netreg_entry_t::type
|
||||||
|
* of @p entry.
|
||||||
*
|
*
|
||||||
* @return 0 on success
|
* @return 0 on success
|
||||||
* @return -EINVAL if @p type was < GNRC_NETTYPE_UNDEF or >= GNRC_NETTYPE_NUMOF
|
* @return -EINVAL if @p type was < GNRC_NETTYPE_UNDEF or >= GNRC_NETTYPE_NUMOF
|
||||||
|
Loading…
Reference in New Issue
Block a user