46 #ifndef LEGATO_EVENT_H 47 #define LEGATO_EVENT_H 115 #ifdef LEGATO_USE_OSAL 116 OSAL_SEM_HANDLE_TYPE eventCountSem;
117 OSAL_MUTEX_HANDLE_TYPE eventLock;
131 void leEvent_Shutdown(
void);
struct leEventState leEventState
This struct represents an event state.
leResult leEvent_AddEvent(leEvent *evt)
Add event.
Definition: legato_event.c:73
Definition: legato_event.h:75
Common macros and definitions used by Legato.
leBool(* leEvent_FilterEvent)(leEvent *)
FilterEvent function pointer.
Definition: legato_event.h:103
This struct represents an event state.
Definition: legato_event.h:112
leResult leEvent_SetFilter(leEvent_FilterEvent cb)
Set filter event callback.
Definition: legato_event.c:66
leEventResult
This enum represents an event result.
Definition: legato_event.h:149
Definition: legato_event.h:71
leEventID
This enum represents valid event IDs.
Definition: legato_event.h:68
leResult leEvent_ClearList(void)
Clear event list.
Definition: legato_event.c:83
leResult
This enum represents function call results.
Definition: legato_common.h:123
Definition: legato_event.h:72
Definition: legato_event.h:152
leEvent_FilterEvent filter
Definition: legato_event.h:121
Definition: legato_event.h:153
Definition: legato_event.h:81
This struct represents a list.
Definition: legato_list.h:94
Definition: legato_event.h:73
uint32_t leEvent_GetCount(void)
Get Event Count.
Definition: legato_event.c:61
A linked list implementation.
Definition: legato_event.h:80
Definition: legato_event.h:79
leList events
Definition: legato_event.h:120
Definition: legato_event.h:82
leBool
This enum represents booleans.
Definition: legato_common.h:146
struct leEvent leEvent
This enum presents a event. An event contains valid event ids.
Definition: legato_event.h:154
This enum presents a event. An event contains valid event ids.
Definition: legato_event.h:91
leResult leEvent_ProcessEvents(void)
Process events.
Definition: legato_event.c:90
Definition: legato_event.h:74
leEventID id
Definition: legato_event.h:93
Definition: legato_event.h:78