On Sat, 3 Mar 2007 01:04:58 +0100
"Fabiano Sidler" <[EMAIL PROTECTED]> 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?

Nope.

> 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
http://www.apachetutor.org/dev/pools

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
http://www.apachetutor.org/

Reply via email to