|
Value: do { \
ns##_HOOK_##name##_t *apu__hook = pfn; \
apr_optional_hook_add(#name,( void (*)( void))apu__hook,aszPre, aszSucc, nOrder); \
} while (0)
Hook to an optional hook.
- Parameters:
-
| ns | The namespace prefix of the hook functions |
| name | The name of the hook |
| pfn | A pointer to a function that will be called |
| aszPre | a NULL-terminated array of strings that name modules whose hooks should precede this one |
| aszSucc | a NULL-terminated array of strings that name modules whose hooks should succeed this one |
| nOrder | an integer determining order before honouring aszPre and aszSucc (for example HOOK_MIDDLE) |
|