Lines Matching refs:hook
75 * @param hookInfo hook information
76 * @param executionContext input arguments for running the hook execution context
82 int stage; /* hook stage */
83 int prio; /* hook priority */
84 OhosHook hook; /* hook function */
85 void *hookCookie; /* hook function cookie, for current hook only */
89 * @brief Add a hook function
93 * @param stage hook stage
94 * @param prio hook priority
95 * @param hook hook function pointer
98 int HookMgrAdd(HOOK_MGR *hookMgr, int stage, int prio, OhosHook hook);
101 * @brief Add a hook function with full hook information
105 * @param hookInfo full hook information
111 * @brief Delete hook function
115 * @param stage hook stage
116 * @param hook hook function pointer
117 * If hook is NULL, it will delete all hooks in the stage
120 void HookMgrDel(HOOK_MGR *hookMgr, int stage, OhosHook hook);
123 * @brief preHook function prototype for HookMgrExecute each hook
125 * @param hookInfo HOOK_INFO for the each hook.
126 * @param executionContext input arguments for running the hook execution context.
132 * @brief postHook function prototype for HookMgrExecute each hook
134 * @param hookInfo HOOK_INFO for the each hook.
135 * @param executionContext input arguments for running the hook execution context.
136 * @param executionRetVal return value for running the hook.
143 /* Stop executing hooks when error returned for each hook */
152 /* preHook for before executing each hook */
154 /* postHook for before executing each hook */
163 * @param stage hook stage
164 * @param extraArgs HOOK_EXEC_ARGS for executing each hook.
189 * @param hookInfo HOOK_INFO for traversing each hook.
210 * @param stage hook stage.