Re: Hooking into arbitrary ap_hook_* functions

2006-09-25 Thread Philip M. Gollucci
Fabian Fagerholm wrote: > By "this functionality", do you mean "implementing an arbitrary > ap_hook_* function in mod_perl" or "implementing an > ap_hook_get_suexec_identity function in mod_perl"? :) The latter. -- Philip M

Re: Hooking into arbitrary ap_hook_* functions

2006-09-25 Thread Fabian Fagerholm
On Mon, 2006-09-25 at 22:09 -0700, Philip M. Gollucci wrote: > I believe you want this file: > xs/maps/apache2_functions.map [...] > see src/modules/perl/mod_perl.c:modperl_register_hooks() Excellent, this helps understanding the mod_perl internals. Apparently the hooks really are hardcoded, and I

Re: Hooking into arbitrary ap_hook_* functions

2006-09-25 Thread Philip M. Gollucci
Fabian Fagerholm wrote: > However, I can't seem to find which ones are available as Perl*Handler > directives and how to access those that aren't. I believe you want this file: xs/maps/apache2_functions.map > static void register_hooks(apr_pool_t * p) > { > ap_hook_get_suexec_identity(my_suxe

Re: Hooking into arbitrary ap_hook_* functions

2006-09-25 Thread Srebrenko Sehic
On 9/25/06, Fabian Fagerholm <[EMAIL PROTECTED]> wrote: The question is, how do I implement the above in mod_perl? More generally, how do I implement an arbitrary ap_hook_* function in Perl and register it with Apache2? AFAIK, I don't think you can, unless you hack the mod_perl sources. If I r

Hooking into arbitrary ap_hook_* functions

2006-09-25 Thread Fabian Fagerholm
Hi! I'm trying to port some Apache2 modules written in C to mod_perl, to reduce the time and effort required to maintain them. The modules do various small things, such as providing custom hooks for suExec and URL translation. They hook extensively into Apache2 using ap_hook_* functions. The mod_