Provides a callback-with-argument event type. More...
Provides a callback-with-argument event type.
Example:
Event Callback API
Definition in file callback.h.
#include "event.h"
Go to the source code of this file.
Data Structures | |
struct | event_callback_t |
Callback Event structure definition. More... | |
#define | EVENT_CALLBACK_INIT(_cb, _arg) |
Callback Event static initializer. More... | |
void | event_callback_init (event_callback_t *event_callback, void(*callback)(void *), void *arg) |
event callback initialization function More... | |
void | _event_callback_handler (event_t *event) |
event callback handler function (used internally) | |
#define EVENT_CALLBACK_INIT | ( | _cb, | |
_arg | |||
) |
Callback Event static initializer.
[in] | _cb | callback function to set |
[in] | _arg | arguments to set |
Definition at line 78 of file callback.h.
void event_callback_init | ( | event_callback_t * | event_callback, |
void(*)(void *) | callback, | ||
void * | arg | ||
) |
event callback initialization function
[out] | event_callback | object to initialize |
[in] | callback | callback to set up |
[in] | arg | callback argument to set up |