How do I register a mod_status hook. Looking at the code, I figure I
register a hook using ap_hook_status_hook (if I try anything else, I
get a complier warning). However I get undefined symbol:
ap_hook_status_hook when I try to run.
Obviously, I'm missing something...
--
Brian Akins
Senior
On Wed, 23 Jun 2004 10:31:08 -0400, Brian Akins wrote:
How do I register a mod_status hook. Looking at the code, I figure I
register a hook using ap_hook_status_hook (if I try anything else, I
get a complier warning). However I get undefined symbol:
ap_hook_status_hook when I try to run
Edward Rudd wrote:
APR_OPTIONAL_HOOK(status_hook,my_status_hook, NULL,NULL,APR_HOOK_MIDDLE);
Thanks!
I had to add another argument:
APR_OPTIONAL_HOOK(ap, status_hook, my_status_hook, NULL, NULL, APR_HOOK_MIDDLE);
--
Brian Akins
Senior Systems Engineer
CNN Internet Technologies
On Wed, 23 Jun 2004 14:26:20 -0400, Brian Akins wrote:
Edward Rudd wrote:
APR_OPTIONAL_HOOK(status_hook,my_status_hook, NULL,NULL,APR_HOOK_MIDDLE);
Thanks!
I had to add another argument:
APR_OPTIONAL_HOOK(ap, status_hook, my_status_hook, NULL, NULL, APR_HOOK_MIDDLE);
The 6th (or
Edward Rudd wrote:
The 6th (or 1st) argument is only required when using 2.1-HEAD (apr-util
1.0).. Apache 2.0/APR-util 0.9.5 don't have this extra argument.
$ grep APR_OPTIONAL_HOOK /opt/apache/include/*
...
/opt/apache/include/ap_config.h:
APR_OPTIONAL_HOOK(ap,name,fn,pre,succ,order)
Something seems amiss, we need a unique designation of the status
namespace because this is how win32 binds to a specific DLL, and
determines if the symbol is exported (e.g., from mod_status). If it is
exported from mod_status, we need a seperate 'status' namespace
rather than 'ap'. Flagging
On Wed, 23 Jun 2004 14:58:04 -0400, Brian Akins wrote:
Edward Rudd wrote:
The 6th (or 1st) argument is only required when using 2.1-HEAD (apr-util
1.0).. Apache 2.0/APR-util 0.9.5 don't have this extra argument.
$ grep APR_OPTIONAL_HOOK /opt/apache/include/*
...