ODeV framework  v2
IErrorFirstResponderVtbl.h
Go to the documentation of this file.
1 
31 #ifndef INCLUDE_SERVICES_IERRORFIRSTRESPONDERVTBL_H_
32 #define INCLUDE_SERVICES_IERRORFIRSTRESPONDERVTBL_H_
33 
34 #ifdef __cplusplus
35 extern "C" {
36 #endif
37 
38 #include "IErrorFirstResponder.h"
39 #include "systp.h"
40 
45 
51  void (*SetOwner)(IErrFirstResponder *this, void *pxOwner);
52  void *(*GetOwner)(IErrFirstResponder *this);
53  sys_error_code_t (*NewError)(IErrFirstResponder *this, SysEvent xError, boolean_t bIsCalledFromISR);
54 };
55 
64 };
65 
66 
67 // Public API declaration
68 //***********************
69 
70 
71 // Inline functions definition
72 // ***************************
73 
74 SYS_DEFINE_INLINE
75 void IErrFirstResponderSetOwner(IErrFirstResponder *this, void *pxOwner) {
76  this->vptr->SetOwner(this, pxOwner);
77 }
78 
79 SYS_DEFINE_INLINE
81  return this->vptr->GetOwner(this);
82 }
83 
84 SYS_DEFINE_INLINE
85 sys_error_code_t IErrorFirstResponderNewError(IErrFirstResponder *this, SysEvent xError, boolean_t bIsCalledFromISR) {
86  return this->vptr->NewError(this, xError, bIsCalledFromISR);
87 }
88 
89 
90 #ifdef __cplusplus
91 }
92 #endif
93 
94 #endif /* INCLUDE_SERVICES_IERRORFIRSTRESPONDERVTBL_H_ */
Definition: sysevent.h:44
SYS_DEFINE_INLINE void IErrFirstResponderSetOwner(IErrFirstResponder *this, void *pxOwner)
Definition: IErrorFirstResponderVtbl.h:75
Definition: IErrorFirstResponderVtbl.h:59
Declare the Error first responder interface.
sys_error_code_t(* NewError)(IErrFirstResponder *this, SysEvent xError, boolean_t bIsCalledFromISR)
Definition: IErrorFirstResponderVtbl.h:53
SYS_DEFINE_INLINE void * IErrFirstResponderGetOwner(IErrFirstResponder *this)
Definition: IErrorFirstResponderVtbl.h:80
SYS_DEFINE_INLINE sys_error_code_t IErrorFirstResponderNewError(IErrFirstResponder *this, SysEvent xError, boolean_t bIsCalledFromISR)
Definition: IErrorFirstResponderVtbl.h:85
unsigned short sys_error_code_t
Definition: syserror.h:45
Definition: IErrorFirstResponderVtbl.h:50
Target platform definition.
const IErrFirstResponder_vtbl * vptr
Definition: IErrorFirstResponderVtbl.h:63
void(* SetOwner)(IErrFirstResponder *this, void *pxOwner)
Definition: IErrorFirstResponderVtbl.h:51