Skip to content
Snippets Groups Projects
Unverified Commit 43d772ce authored by Sebastian Meiling's avatar Sebastian Meiling Committed by GitHub
Browse files

Merge pull request #10847 from jia200x/pr/fix_netreg_macros

net/netreg: fix static netreg init macros
parents fbe43634 65e985d6
No related branches found
No related tags found
No related merge requests found
...@@ -107,15 +107,15 @@ typedef enum { ...@@ -107,15 +107,15 @@ typedef enum {
* *
* @param[in] demux_ctx The @ref gnrc_netreg_entry_t::demux_ctx "demux context" * @param[in] demux_ctx The @ref gnrc_netreg_entry_t::demux_ctx "demux context"
* for the netreg entry * for the netreg entry
* @param[in] mbox Target @ref core_mbox "mailbox" for the registry entry * @param[in] _mbox Target @ref core_mbox "mailbox" for the registry entry
* *
* @note Only available with @ref net_gnrc_netapi_mbox. * @note Only available with @ref net_gnrc_netapi_mbox.
* *
* @return An initialized netreg entry * @return An initialized netreg entry
*/ */
#define GNRC_NETREG_ENTRY_INIT_MBOX(demux_ctx, mbox) { NULL, demux_ctx, \ #define GNRC_NETREG_ENTRY_INIT_MBOX(demux_ctx, _mbox) { NULL, demux_ctx, \
GNRC_NETREG_TYPE_MBOX, \ GNRC_NETREG_TYPE_MBOX, \
{ .mbox = mbox } } { .mbox = _mbox } }
#endif #endif
#if defined(MODULE_GNRC_NETAPI_CALLBACKS) || defined(DOXYGEN) #if defined(MODULE_GNRC_NETAPI_CALLBACKS) || defined(DOXYGEN)
...@@ -124,15 +124,15 @@ typedef enum { ...@@ -124,15 +124,15 @@ typedef enum {
* *
* @param[in] demux_ctx The @ref gnrc_netreg_entry_t::demux_ctx "demux context" * @param[in] demux_ctx The @ref gnrc_netreg_entry_t::demux_ctx "demux context"
* for the netreg entry * for the netreg entry
* @param[in] cbd Target callback for the registry entry * @param[in] _cbd Target callback for the registry entry
* *
* @note Only available with @ref net_gnrc_netapi_callbacks. * @note Only available with @ref net_gnrc_netapi_callbacks.
* *
* @return An initialized netreg entry * @return An initialized netreg entry
*/ */
#define GNRC_NETREG_ENTRY_INIT_CB(demux_ctx, cbd) { NULL, demux_ctx, \ #define GNRC_NETREG_ENTRY_INIT_CB(demux_ctx, _cbd) { NULL, demux_ctx, \
GNRC_NETREG_TYPE_CB, \ GNRC_NETREG_TYPE_CB, \
{ .cbd = cbd } } { .cbd = _cbd } }
/** @} */ /** @} */
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment