httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Kew <>
Subject Re: Share data between modules
Date Thu, 12 Oct 2006 13:08:39 GMT
On Thursday 12 October 2006 13:41, wrote:

> So my idea was that one of the three modules parses the file, creates
> the hash_table_t and populates it. Then each child of these modules
> should be able to read (only read e not write) the hash table.
> Is it possible in your opinion?

Of course.  The module just needs to export an accessor function,
to access either the hash itself or the value of a given key.
Use APR_OPTIONAL if you want to keep them fully independent
at link time.

> I suppose that I have to use apr_shm_t (and apr_rmm_init??).

Erm, why?

Nick Kew

Application Development with Apache - the Apache Modules Book

View raw message