Type Alias riot_sys::gnrc_netreg_entry_cb_t
source · pub type gnrc_netreg_entry_cb_t = Option<unsafe extern "C" fn(cmd: u16, pkt: *mut gnrc_pktsnip_t, ctx: *mut c_void)>;
Expand description
@brief Packet handler callback for netreg entries with callback.
@pre cmd
∈ { @ref GNRC_NETAPI_MSG_TYPE_RCV, @ref GNRC_NETAPI_MSG_TYPE_SND }
@note Only available with @ref net_gnrc_netapi_callbacks.
@param[in] cmd @ref net_gnrc_netapi command type. Must be either @ref GNRC_NETAPI_MSG_TYPE_SND or @ref GNRC_NETAPI_MSG_TYPE_RCV @param[in] pkt The packet to handle. @param[in] ctx Application context.
Aliased Type§
enum gnrc_netreg_entry_cb_t {
None,
Some(unsafe extern "C" fn(_: u16, _: *mut gnrc_pktsnip, _: *mut c_void)),
}