Home
last modified time | relevance | path

Searched refs:hookMgr (Results 1 – 4 of 4) sorted by relevance

/base/startup/init/interfaces/innerkits/hookmgr/
Dhookmgr.c59 static HOOK_MGR *getHookMgr(HOOK_MGR *hookMgr, int autoCreate) in getHookMgr() argument
61 BEGET_CHECK(hookMgr == NULL, return hookMgr); in getHookMgr()
93 static HOOK_STAGE *getHookStage(HOOK_MGR *hookMgr, int stage, int createIfNotFound) in getHookStage() argument
97 stageItem = (HOOK_STAGE *)OH_ListFind(&(hookMgr->stages), (void *)(&stage), hookStageCompare); in getHookStage()
107 OH_ListAddTail(&(hookMgr->stages), (ListNode *)stageItem); in getHookStage()
167 int HookMgrAddEx(HOOK_MGR *hookMgr, const HOOK_INFO *hookInfo) in HookMgrAddEx() argument
174 hookMgr = getHookMgr(hookMgr, true); in HookMgrAddEx()
175 BEGET_CHECK(hookMgr != NULL, return -1); in HookMgrAddEx()
178 stageItem = getHookStage(hookMgr, hookInfo->stage, true); in HookMgrAddEx()
185 int HookMgrAdd(HOOK_MGR *hookMgr, int stage, int prio, OhosHook hook) in HookMgrAdd() argument
[all …]
/base/startup/init/test/unittest/innerkits/
Dhookmgr_unittest.cpp73 static void dumpAllHooks(HOOK_MGR *hookMgr) in dumpAllHooks() argument
76 HookMgrTraversal(hookMgr, NULL, OhosHookPrint); in dumpAllHooks()
189 HOOK_MGR *hookMgr = HookMgrCreate("test"); variable
190 ASSERT_NE(hookMgr, nullptr);
193 ret = HookMgrAdd(hookMgr, STAGE_TEST_ONE, 0, OhosTestHookRetOK);
195 cnt = HookMgrGetHooksCnt(hookMgr, STAGE_TEST_ONE);
198 HookMgrDel(hookMgr, STAGE_TEST_ONE, OhosTestHookRetOK);
199 cnt = HookMgrGetHooksCnt(hookMgr, STAGE_TEST_ONE);
203 ret = HookMgrAdd(hookMgr, STAGE_TEST_ONE, 0, OhosTestHookRetOK);
205 cnt = HookMgrGetHooksCnt(hookMgr, STAGE_TEST_ONE);
[all …]
/base/startup/init/interfaces/innerkits/include/
Dhookmgr.h98 int HookMgrAdd(HOOK_MGR *hookMgr, int stage, int prio, OhosHook hook);
108 int HookMgrAddEx(HOOK_MGR *hookMgr, const HOOK_INFO *hookInfo);
120 void HookMgrDel(HOOK_MGR *hookMgr, int stage, OhosHook hook);
167 int HookMgrExecute(HOOK_MGR *hookMgr, int stage, void *executionContext, const HOOK_EXEC_OPTIONS *e…
184 void HookMgrDestroy(HOOK_MGR *hookMgr);
203 void HookMgrTraversal(HOOK_MGR *hookMgr, void *traversalCookie, OhosHookTraversal traversal);
213 int HookMgrGetHooksCnt(HOOK_MGR *hookMgr, int stage);
222 int HookMgrGetStagesCnt(HOOK_MGR *hookMgr);
/base/startup/init/test/moduletest/
Dhookmgr_moduletest.cpp69 static void DumpAllHooks(HOOK_MGR *hookMgr) in DumpAllHooks() argument
72 HookMgrTraversal(hookMgr, NULL, OhosHookPrint); in DumpAllHooks()