[riot-notifications] [RIOT-OS/RIOT] gnrc/nib: add NIB event bus (#14022)

benpicco notifications at github.com
Tue May 12 20:41:02 CEST 2020


@benpicco commented on this pull request.



> @@ -828,6 +828,24 @@ static inline void _evtimer_add(void *ctx, int16_t type,
     evtimer_add_msg(&_nib_evtimer, event, target_pid);
 }
 
+/**
+ * @brief   Posts a message to the NIB bus of the interface
+ *
+ * @param[in] netif     Pointer to the interface
+ * @param[in] type      [Type of the event](@ref gnrc_ipv6_nib_event_t)
+ * @param[in] ctx       The context of the event
+ */
+static inline void _nib_bus_post(gnrc_netif_t *netif, int type, const void *ctx)
+{
+#ifdef MODULE_GNRC_NETIF_BUS
+    msg_bus_post(&netif->bus[GNRC_NETIF_BUS_NIB], type, ctx);

Yea I think it's an `IPV6_EVENT_BUS` now.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/14022#discussion_r423952579
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20200512/c9573b50/attachment-0001.htm>


More information about the notifications mailing list