|
Apache HTTPD
|
ap hook functions and macros More...
Go to the source code of this file.
ap hook functions and macros
Definition in file ap_hooks.h.
Declare a hook function
| ret | The return type of the hook |
| name | The hook's name (as a literal) |
| args | The arguments the hook function takes, in brackets. |
Definition at line 74 of file ap_hooks.h.
Definition at line 78 of file ap_hooks.h.
Implement an Apache core hook that runs until one of the functions returns something other than ok or decline. That return value is then returned from the hook runner. If the hooks run to completion, then ok is returned. Note that if no hook runs it would probably be more correct to return decline, but this currently does not do so. The implementation is called ap_run_name.
| ret | The return type of the hook (and the hook runner) |
| name | The name of the hook |
| args_decl | The declaration of the arguments for the hook, for example "(int x,void *y)" |
| args_use | The arguments for the hook as used in a call, for example "(x,y)" |
| ok | The "ok" return value |
| decline | The "decline" return value |
Definition at line 117 of file ap_hooks.h.
Implement a hook that runs until a function returns something other than decline. If all functions return decline, the hook runner returns decline. The implementation is called ap_run_name.
| ret | The return type of the hook (and the hook runner) |
| name | The name of the hook |
| args_decl | The declaration of the arguments for the hook, for example "(int x,void *y)" |
| args_use | The arguments for the hook as used in a call, for example "(x,y)" |
| decline | The "decline" return value |
Definition at line 137 of file ap_hooks.h.
| #define AP_IMPLEMENT_HOOK_VOID | ( | name, | |
| args_decl, | |||
| args_use | |||
| ) | APR_IMPLEMENT_EXTERNAL_HOOK_VOID(ap,AP,name,args_decl,args_use) |
Implement an Apache core hook that has no return code, and therefore runs all of the registered functions. The implementation is called ap_run_name.
| name | The name of the hook |
| args_decl | The declaration of the arguments for the hook, for example "(int x,void *y)" |
| args_use | The arguments for the hook as used in a call, for example "(x,y)" |
Definition at line 94 of file ap_hooks.h.
Implement an optional hook. This is exactly the same as a standard hook implementation, except the hook is optional.
Definition at line 150 of file ap_hooks.h.