The event callback shall be a function with the following prototype:
void obex_event_t( obex_t *handle
obex_object_t *obj
gint mode
gint event
gint obex_cmd
gint obex_rsp
);
Table 2-1. Arguments
| Argument | Description |
|---|---|
| handle | OBEX handle |
| obj | OBEX object |
| mode | OBEX_CLI for client event or OBEX_SRV, for server event |
| event | The event. See obex_const.h for possible events. |
| obex_cmd | Command if any (depending on event type) |
| obex_rsp | Response if any (depending on event type) |
OBEX_SetUserData and OBEX_GetUserData are useful if you need
to access your own private data from inside the event callback.