Lines Matching refs:onRecFunc
39 int32_t HostapdRegisterEventCallback(OnReceiveFunc onRecFunc, uint32_t eventType, const char *ifName)
44 if (onRecFunc == NULL || ifName == NULL) {
51 && g_hostapdCallbackEventMap[i]->onRecFunc == onRecFunc) {
52 HDF_LOGI("%s the onRecFunc has been registered!", __FUNCTION__);
69 callbackEvent->onRecFunc = onRecFunc;
82 HDF_LOGE("%s fail: register onRecFunc num more than %d!", __FUNCTION__, MAX_CALL_BACK_COUNT);
86 int32_t HostapdUnregisterEventCallback(OnReceiveFunc onRecFunc, uint32_t eventType, const char *ifName)
90 if (onRecFunc == NULL || ifName == NULL) {
98 g_hostapdCallbackEventMap[i]->onRecFunc == onRecFunc) {
99 g_hostapdCallbackEventMap[i]->onRecFunc = NULL;
120 callbackEventMap[i] = g_hostapdCallbackEventMap[i]->onRecFunc;