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

◆ APP_EVENT_HOOK_PREPROCESS_REGISTER_FIRST

#define APP_EVENT_HOOK_PREPROCESS_REGISTER_FIRST (   hook_fn)

#include <include/app_event_manager.h>

Value:
const struct {} __event_hook_preprocess_first_sub_redefined = {}; \
_APP_EVENT_HOOK_PREPROCESS_REGISTER(hook_fn, _APP_EM_MARKER_FIRST_ELEMENT)

Register event hook on the start of event processing. The hook would be called first.

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 first. Only one hook can be registered with this macro.

Parameters
hook_fnHook function.