Is it possible to invoke third party Apache module functions from mod_perl

Is it possible to invoke third party Apache module functions from mod_perl

am 30.01.2011 20:27:26 von Shibi NS

--20cf3054ac8713a2c4049b154a0d
Content-Type: text/plain; charset=ISO-8859-1

I have a Apache module mod_xyz , is there is anyway i can invoke some
functions defined mod_xyz from mod_perl ?

--
--Shibi Ns--

--20cf3054ac8713a2c4049b154a0d
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

I have a Apache module mod_xyz , is there is anyway i can invoke some funct=
ions defined mod_xyz=A0 from mod_perl ?

--
--Shibi=
Ns--


--20cf3054ac8713a2c4049b154a0d--

Re: Is it possible to invoke third party Apache module functions from mod_perl

am 30.01.2011 20:42:03 von torsten.foertsch

On Sunday, January 30, 2011 20:27:26 Shibi NS wrote:
> I have a Apache module mod_xyz , is there is anyway i can invoke some
> functions defined mod_xyz from mod_perl ?

it depends.

Apache2::ModSSL calls for example a few functions from mod_ssl. Problem is =
a=20
module can be loaded but can also be omitted by the admin. Apache has an=20
optional function interface to import functions from another module. The=20
following is part of ModSSL.xs. It imports mod_ssl's ssl_is_https() etc.

static void
retrieve_functions(void)
{
if( is_initialized ) return;
is_initialized++;
is_https=3DAPR_RETRIEVE_OPTIONAL_FN(ssl_is_https);
lookup=3DAPR_RETRIEVE_OPTIONAL_FN(ssl_var_lookup);
ext_lookup=3DAPR_RETRIEVE_OPTIONAL_FN(ssl_ext_lookup);
}

On the other hand, maybe you have something else in mind, something higher=
=20
level?

Torsten Förtsch

=2D-=20
Need professional modperl support? Hire me! (http://foertsch.name)

Like fantasy? http://kabatinte.net