httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Querna <c...@force-elite.com>
Subject Re: Dumping Loaded Modules
Date Mon, 21 Jun 2004 04:24:49 GMT
On Sun, 2004-06-20 at 20:34 -0400, Geoffrey Young wrote:
> > Index: modules/mappers/mod_so.h
> > ===================================================================
> > RCS file: /home/cvspublic/httpd-2.0/modules/mappers/mod_so.h,v
> > retrieving revision 1.1
> > diff -u -r1.1 mod_so.h
> > --- modules/mappers/mod_so.h	4 Jun 2004 22:40:47 -0000	1.1
> > +++ modules/mappers/mod_so.h	20 Jun 2004 01:35:44 -0000
> > @@ -22,6 +22,8 @@
> >  /* optional function declaration */
> >  APR_DECLARE_OPTIONAL_FN(module *, ap_find_loaded_module_symbol,
> >                          (server_rec *s, const char *modname));
> > +APR_DECLARE_OPTIONAL_FN(void, ap_dump_loaded_modules,
> > +                        (apr_pool_t* p, server_rec *s));
> 
> out of curiosity, what is the advantage to using the optional function here?
>  I am only familiar with it in the mod_include sense, so perhaps I should be
> looking into something like this instead?

The reason it is an optional function is that mod_so is not always
statically compiled into apache.  This is an easy way to avoid a bunch
of #defines in main.c trying to tell if mod_so is statically linked in
to httpd.

-Paul Querna


Mime
View raw message