diff --git a/interfaces/innerkits/init_module_engine/include/bootstage.h b/interfaces/innerkits/init_module_engine/include/bootstage.h index 538c1de26e340d4513b945ab138108a058884281..d024dca2afb4dd58c1edf41ee9e4bff7a94f7e9e 100755 --- a/interfaces/innerkits/init_module_engine/include/bootstage.h +++ b/interfaces/innerkits/init_module_engine/include/bootstage.h @@ -54,6 +54,11 @@ enum INIT_BOOTSTAGE { HOOK_MGR *GetBootStageHookMgr(); +__attribute__((always_inline)) inline int InitAddFirstStageHook(int prio, OhosHook hook) +{ + return HookMgrAdd(GetBootStageHookMgr(), INIT_FIRST_STAGE, prio, hook); +} + __attribute__((always_inline)) inline int InitAddGlobalInitHook(int prio, OhosHook hook) { return HookMgrAdd(GetBootStageHookMgr(), INIT_GLOBAL_INIT, prio, hook);