push_handler with Apache::ModuleConfig

[prev] [thread] [next] [Date index for 2004/11/16]

From: Xavier
Subject: push_handler with Apache::ModuleConfig
Date: 18:18 on 16 Nov 2004
Hello,

for best look, I'd like to replace :

PerlInitHandler My::Module
   with
MyModule On

I've done the XS file using Apache::ExtUtils, but I don't know how to 
write the "MyModule" sub. Is there any entry in the $cfg object to do it?

sub MyModule {
     my($cfg,$parms,$arg)=@_;
     $cfg->{__WHAT__} = \&myhandler if($arg);
}

With Google, I've found scripts using "$cfg->{handler}", but they're 
calling a standard handler, not a Perl one; I've neither found any doc 
about the "per-directory/server" $cfg class.

Thanks.
Xavier

---
French translation of Postfix documentation : 
http://x.guimard.free.fr/postfix/


        -- 
        Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

push_handler with Apache::ModuleConfig
Xavier 18:18 on 16 Nov 2004

Re: push_handler with Apache::ModuleConfig
Geoffrey Young 15:19 on 19 Nov 2004

Generated at 11:26 on 21 Dec 2004 by mariachi v0.52