Collaboration diagram for Optional Hook Functions:
|
Defines | |
| #define | APR_OPTIONAL_HOOK(ns, name, pfn, aszPre, aszSucc, nOrder) |
| #define | APR_IMPLEMENT_OPTIONAL_HOOK_RUN_ALL(ns, link, ret, name, args_decl, args_use, ok, decline) |
Functions | |
| APU_DECLARE (void) apr_optional_hook_add(const char *szName | |
| APU_DECLARE (apr_array_header_t *) apr_optional_hook_get(const char *szName) | |
Variables | |
| void(* | pfn )(void) |
| void(*) const char *const | aszPre ) |
| void(*) const char *const const char *const | aszSucc ) |
| void(*) const char *const const char *const in | nOrder ) |
|
|
Value: link##_DECLARE(ret) ns##_run_##name args_decl \ { \ ns##_LINK_##name##_t *pHook; \ int n; \ ret rv; \ apr_array_header_t *pHookArray=apr_optional_hook_get(#name); \ \ if(!pHookArray) \ return ok; \ \ pHook=(ns##_LINK_##name##_t *)pHookArray->elts; \ for(n=0 ; n < pHookArray->nelts ; ++n) \ { \ rv=(pHook[n].pFunc)args_use; \ \ if(rv != ok && rv != decline) \ return rv; \ } \ return ok; \ }
Definition at line 90 of file apr_optional_hooks.h. |
|
|
Value: do { \ ns##_HOOK_##name##_t *apu__hook = pfn; \ apr_optional_hook_add(#name,(void (*)(void))apu__hook,aszPre, aszSucc, nOrder); \ } while (0)
Definition at line 64 of file apr_optional_hooks.h. Referenced by register_hooks(). |
|
|
|
|
|
Function to implemnt the APR_OPTIONAL_HOOK Macro |
|
|
Definition at line 49 of file apr_optional_hooks.h. |
|
|
Definition at line 49 of file apr_optional_hooks.h. |
|
|
Definition at line 49 of file apr_optional_hooks.h. |
|
|
|