lib::Apache::ExtUUsteirlsC(o3n)tributed

lib::Apache::ExtUUsteirlsC(o3n)tributed

Apache::Debug Home Page Subroutines Index Apache::fork


NNAAMMEE
       Apache::ExtUtils - Utils for Apache:C/Perl glue

SSYYNNOOPPSSIISS
           use Apache::ExtUtils ();

DDEESSCCRRIIPPTTIIOONN
       Just one method at the moment:

         use IO::File ();
         use Apache::ExtUtils ();

         my @directives = qw(MyDirective);
         my $fh = IO::File->new(">My/Module/Module.xs") or die $!
         my $xs_code = Apache::ExtUtils->xs_cmd_table("My::Module", \@directives);
         print $fh $xs_code;

       This example will generate a .xs file which declares an
       Apache C module for the My::Module class.  It is used
       simply to allow Perl modules to add their own directives
       to Apache, rather than use PPeerrllSSeettVVaarr.  When the directive
       is encountered in a config file, a Perl subroutine of the
       same name in the My::Module class is called and passed the
       arguments as perl TAKE123.

       For an example, see t/TestDirectives in the mod_perl
       distribution.

AAUUTTHHOORR
       Doug MacEachern

Apache::Debug Home Page Subroutines Index Apache::fork