/* send request to dispatcher and wait for response */ int dspRequestSynch(dspT *dsp, void *context, int reqLength, uint8 *reqData, uint8 *rspData) { /* synchronous request */ return dspSend(dsp, context, EVENT_REQUEST, TRUE, reqLength, reqData, rspData); }
/* send request to dispatcher */ int dspRequest(dspT *dsp, void *context, int reqLength, uint8 *reqData) { /* asynchronous request */ return dspSend(dsp, context, EVENT_REQUEST, FALSE, reqLength, reqData, 0); }
/* stop dispatcher processing */ int dspStop(dspT *dsp) { /* synchronous request */ return dspSend(dsp, 0, EVENT_STOP, TRUE, 0, 0, 0); }
/* dispatcher unsubscribe */ int dspUnsubscribe(dspT *dsp, dspWlanHandlerT wlan) { /* synchronous request */ return dspSend(dsp, 0, EVENT_UNSUBSCRIBE, TRUE, sizeof(dspWlanHandlerT), (uint8 *)&wlan, 0); }
/* dispatcher subscribe */ int dspSubscribe(dspT *dsp, void *context, dspWlanHandlerT wlan) { /* synchronous request */ return dspSend(dsp, context, EVENT_SUBSCRIBE, TRUE, sizeof(dspWlanHandlerT), (uint8 *)&wlan, 0); }
/* stop dispatcher processing */ int dspStop(dspT *dsp) { return dspSend(dsp, dsp, EVENT_STOP, FALSE, 0, 0, 0); }