ODeV framework  v2
IEvent.h
Go to the documentation of this file.
1 
33 #ifndef INCLUDE_EVENTS_IEVENT_H_
34 #define INCLUDE_EVENTS_IEVENT_H_
35 
36 #ifdef __cplusplus
37 extern "C" {
38 #endif
39 
40 #include "systypes.h"
41 #include "syserror.h"
42 #include "systp.h"
43 
44 typedef struct _IEventSrc IEventSrc;
45 
46 typedef struct _IEvent IEvent;
47 
52 struct _IEvent {
57 };
58 
59 
60 // Public API declaration
61 //***********************
62 
70 inline sys_error_code_t IEventInit(IEvent *this, const IEventSrc *pSource);
71 
72 // Inline functions definition
73 // ***************************
74 
75 SYS_DEFINE_INLINE
76 sys_error_code_t IEventInit(IEvent *this, const IEventSrc *pSource) {
77  this->pSource = pSource;
78 
79  return SYS_NO_ERROR_CODE;
80 }
81 
82 #ifdef __cplusplus
83 }
84 #endif
85 
86 #endif /* INCLUDE_EVENTS_IEVENT_H_ */
Define the global error management API.
sys_error_code_t IEventInit(IEvent *this, const IEventSrc *pSource)
Definition: IEvent.h:76
Definition: IEventSrcVtbl.h:58
Common type declaration.
unsigned short sys_error_code_t
Definition: syserror.h:45
Target platform definition.
Definition: IEvent.h:52
const IEventSrc * pSource
Definition: IEvent.h:56