nRF Connect SDK API 2.8.99
Loading...
Searching...
No Matches

◆ APP_EVENT_HOOK_POSTPROCESS_REGISTER_LAST

#define APP_EVENT_HOOK_POSTPROCESS_REGISTER_LAST ( hook_fn)

#include <include/app_event_manager.h>

Value:
const struct {} __event_hook_postprocess_last_sub_redefined = {}; \
_APP_EVENT_HOOK_POSTPROCESS_REGISTER(hook_fn, _APP_EM_MARKER_FINAL_ELEMENT)

Register event hook on the end of event processing. The hook would be called last.

The event hook called after the event is processed. The hook function should have a form void hook(const struct app_event_header *aeh). The macro makes sure that the hook provided here is called last. Only one hook can be registered with this macro.

Parameters
hook_fnHook function.