35 #ifndef __EVENT_HANDLER_H__
36 #define __EVENT_HANDLER_H__
100 #define M_BSD_RESP_PARAMS_OFFSET(hci_event_hdr)((CHAR *)(hci_event_hdr) + HCI_EVENT_HEADER_SIZE)
102 #define SOCKET_STATUS_ACTIVE 0
103 #define SOCKET_STATUS_INACTIVE 1
106 #define SOCKET_STATUS_INIT_VAL 0xFFFF
107 #define M_IS_VALID_SD(sd) ((0 <= (sd)) && ((sd) <= 7))
108 #define M_IS_VALID_STATUS(status) (((status) == SOCKET_STATUS_ACTIVE)||((status) == SOCKET_STATUS_INACTIVE))
110 extern UINT32 socket_active_status;
117 INT32 iSocketDescriptor;
126 INT32 iSocketDescriptor;
127 INT32 iNumberOfBytes;
131 #define BSD_RECV_FROM_FROMLEN_OFFSET (4)
132 #define BSD_RECV_FROM_FROM_OFFSET (16)
163 #endif // __cplusplus
165 #endif // __EVENT_HANDLER_H__
Definition: evnt_handler.h:124
Definition: evnt_handler.h:144
INT32 get_socket_active_status(INT32 Sd)
Retrieve socket status.
Definition: evnt_handler.c:765
Definition: evnt_handler.h:115
INT32 hci_unsol_event_handler(CHAR *event_hdr)
Handle unsolicited events.
Definition: evnt_handler.c:502
Definition: evnt_handler.h:150
INT32 hci_unsolicited_event_handler(void)
Parse the incoming unsolicited event packets and issues corresponding event handler.
Definition: evnt_handler.c:664
void set_socket_active_status(INT32 Sd, INT32 Status)
Check if the socket ID and status are valid and set accordingly the global socket status...
Definition: evnt_handler.c:705
Definition: evnt_handler.h:135
UINT8 * hci_event_handler(void *pRetParams, UINT8 *from, UINT8 *fromlen)
Parse the incoming events packets and issues corresponding event handler from global array of handler...
Definition: evnt_handler.c:227