httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Kew <>
Subject Re: Several questions about writing modules
Date Sat, 03 Mar 2007 00:38:39 GMT
On Sat, 3 Mar 2007 01:04:58 +0100
"Fabiano Sidler" <> wrote:

> Hi folks!
> Although the Apache webserver has a somewhat comprehensive API, there
> are still questions I can't answer:
> What about pointers in the module_config struct? (How) does the httpd
> guarantee the proper deallocation of referenced memory? Do I have to
> register a dealloc function with each of my module_config structs?


> Which is the lifetime of the pool passed to post_config functions as
> the pconf parameter? Is this the same pool passed as pconf to
> pre_config functions? Is it feasible for storing persistent
> configuration data, or can I use it instead of creating an own pool
> for each module_config struct?

For the brief answers to the above, see

For the full answer, see the book referenced in my .sig.

> Is there an array or a (linked) list available of all module_config
> structs in use? Or do I have to create one in my
> create_{dir,srv}_config functions?

Yes there is, but you shouldn't use it directly.  The API provides
accessors for own- and public module data.

Nick Kew

Application Development with Apache - the Apache Modules Book

View raw message