EM-ODP  3.7.0
Event Machine on ODP
em_hooks.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

em_status_t hooks_init (const em_api_hooks_t *api_hooks, const em_idle_hooks_t *idle_hooks)
 
em_status_t hook_register (uint8_t type, hook_fn_t hook_fn)
 
em_status_t hook_unregister (uint8_t type, hook_fn_t hook_fn)
 

Detailed Description

EM internal API callback hook functions

Definition in file em_hooks.h.

Function Documentation

◆ hook_register()

em_status_t hook_register ( uint8_t  type,
hook_fn_t  hook_fn 
)

Helper function for registering callback hook functions.

Returns
EM_OK if there was room left to register a new callback

Definition at line 140 of file em_hooks.c.

◆ hook_unregister()

em_status_t hook_unregister ( uint8_t  type,
hook_fn_t  hook_fn 
)

Helper function for unregistering dispatcher callback functions.

Returns
EM_OK if there was room left to register a new callback

Definition at line 194 of file em_hooks.c.

◆ hooks_init()

em_status_t hooks_init ( const em_api_hooks_t api_hooks,
const em_idle_hooks_t idle_hooks 
)

EM API-callback and idle hooks init function (called once at startup).

Definition at line 46 of file em_hooks.c.