EM-ODP 4.4.0
Event Machine on ODP
Loading...
Searching...
No Matches
em_hooks.h File Reference
#include <stdint.h>
#include <event_machine.h>
#include "em_hook_types.h"
#include "em_mem.h"
Include dependency graph for em_hooks.h:
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 161 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 215 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 62 of file em_hooks.c.