mod_status hook

2004-06-23 Thread Brian Akins
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

Re: mod_status hook

2004-06-23 Thread Edward Rudd
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

Re: mod_status hook

2004-06-23 Thread Brian Akins
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

Re: mod_status hook

2004-06-23 Thread Edward Rudd
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

Re: mod_status hook

2004-06-23 Thread Brian Akins
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)

Re: mod_status hook

2004-06-23 Thread William A. Rowe, Jr.
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

Re: mod_status hook (fixed)

2004-06-23 Thread Edward Rudd
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/* ...