API Reference | developer.brewmp.com API Reference | developer.brewmp.com

Developer

API Reference

IOBEXSRV_GETEVENT()

Brew Release
Brew MP 1.0.2
See Also
Description
After the signal registered via IOBEXSrv_OnEventNotify() is triggered, the application can retrieve the event by calling this method.
The list of events and corresponding data are as follows:
   Events                             Data structure 
------------------------------------------------------------------------------------
   AEEOBEX_EVT_SRV_REG_CMPL           AEEOBEXCmdStatus
   AEEOBEX_EVT_SRV_DEREG_CMPL         AEEOBEXCmdStatus
   AEEOBEX_EVT_SRV_NEW_CLI            IOBEXSrvSession
Params
po
[in]:
pointer to the IOBEXSrv object
pEventId
[out]:
event type
pCmdStatus
[out]:
command status
ppiSrvSession
[out]:
on return of the API, this location will contain pointer to the server session object if event is AEEOBEX_EVT_SRV_NEW_CLI. NULL otherwise.
Interface
Prototype
  •    int IOBEXSrv_GetEvent(IOBEXSrv           *p,
                             AEEOBEXEventType   *pEventId,
                             AEEOBEXCmdStatus   *pCmdStatus,
                             IOBEXSrvSession    **ppiSrvSession);
    
Return
  • AEE_SUCCESS : the event was successfully read AEE_EBADPARM : bad parameters AEE_ENOMORE : No event to deliver to the application
Side Effect
  • None.
Comments
None.