ODeV framework  v2
IEventSrc.h
Go to the documentation of this file.
1 
32 #ifndef INCLUDE_EVENTS_IEVENTSRC_H_
33 #define INCLUDE_EVENTS_IEVENTSRC_H_
34 
35 #ifdef __cplusplus
36 extern "C" {
37 #endif
38 
39 
40 #include "systypes.h"
41 #include "syserror.h"
42 #include "IEvent.h"
43 #include "IEventListener.h"
44 #include "IEventListenerVtbl.h"
45 
49 typedef struct _IEventSrc IEventSrc;
50 
51 
52 // Public API declaration
53 //***********************
54 
62 
71 
80 
87 inline uint32_t IEventSrcGetMaxListenerCount(const IEventSrc *this);
88 
98 inline sys_error_code_t IEventSrcSendEvent(const IEventSrc *this, const IEvent *pxEvent, void *pvParams);
99 
100 
101 // Inline functions definition
102 // ***************************
103 
104 
105 #ifdef __cplusplus
106 }
107 #endif
108 
109 
110 #endif /* INCLUDE_EVENTS_IEVENTSRC_H_ */
Define the global error management API.
Definition: IEventListenerVtbl.h:56
Event Listener Interface.
uint32_t IEventSrcGetMaxListenerCount(const IEventSrc *this)
Definition: IEventSrcVtbl.h:89
sys_error_code_t IEventSrcInit(IEventSrc *this)
Definition: IEventSrcVtbl.h:74
The root class from which all event state objects shall be derived.
sys_error_code_t IEventSrcAddEventListener(IEventSrc *this, IEventListener *pListener)
Definition: IEventSrcVtbl.h:79
Definition: IEventSrcVtbl.h:58
Common type declaration.
sys_error_code_t IEventSrcRemoveEventListener(IEventSrc *this, IEventListener *pListener)
Definition: IEventSrcVtbl.h:84
unsigned short sys_error_code_t
Definition: syserror.h:45
sys_error_code_t IEventSrcSendEvent(const IEventSrc *this, const IEvent *pxEvent, void *pvParams)
Definition: IEventSrcVtbl.h:94
Definition: IEvent.h:52
IEventListener virtual table definition.