ODeV framework
v2
|
Definition of the IEventSrc virtual functions. More...
Go to the source code of this file.
Data Structures | |
struct | _IEventSrc_vtbl |
struct | _IEventSrc |
Functions | |
SYS_DEFINE_INLINE sys_error_code_t | IEventSrcInit (IEventSrc *this) |
SYS_DEFINE_INLINE sys_error_code_t | IEventSrcAddEventListener (IEventSrc *this, IEventListener *pListener) |
SYS_DEFINE_INLINE sys_error_code_t | IEventSrcRemoveEventListener (IEventSrc *this, IEventListener *pListener) |
SYS_DEFINE_INLINE uint32_t | IEventSrcGetMaxListenerCount (const IEventSrc *this) |
SYS_DEFINE_INLINE sys_error_code_t | IEventSrcSendEvent (const IEventSrc *this, const IEvent *pxEvent, void *pvParams) |
Definition of the IEventSrc virtual functions.
Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); You may not use this file except in compliance with the License. You may obtain a copy of the License at:
http://www.st.com/software_license_agreement_liberty_v2
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
|
inline |
Register a listener with this event souce.
this | [IN] specifies a pointer to an IEventSrc object. |
pListener | [IN] specifies a pointer to an IEventListener object. |
|
inline |
Get the maximum number of IEventListener that can be registered with this event source.
this | [IN] specifies a pointer to an IEventSrc object. |
|
inline |
Initialize an event source. This function should be called after the
this | [IN] specifies a pointer to an IEventSrc object. |
|
inline |
Remove a listener from this event source,
this | [IN] specifies a pointer to an IEventSrc object. |
pListener | [IN] specifies a pointer to an IEventListener object. |
|
inline |
Send an IEvent to all the registered IEventListener.
this | [IN] specifies a pointer to an IEventSrc object. |
pxEvent | [IN] specifies a pointer to an IEvent object. |
pvParams | [IN] specifies a generic pointer that can be used by the application extend the semantic Event design pattern. |