Updated: October 28, 2024 |
Register an event handler with the QWF Network Manager service
#include <qwf/qwf_net.h>
qwf_net_Results_e qwf_net_RegisterCallback(const qwf_Context_t *const pCtx, qwf_net_EventClientCallback_t eventHandler, void *pClientData)
NET_OK Successful result
NET_ERR_INACTIVE The QWF Network Manager service is inactive or not ready
NET_ERR_INT eventHandler is NULL but no handler is registered, eventHandler is not NULL and a handler is already registered, or memory can't be allocated for the next event
NET_ERR_PARAM pCtx is NULL or the QWF Network Manager context can't be retrieved