httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Suat Furkan Kahya <>
Subject [users@httpd] a newbie question: Share custom Data between modules
Date Tue, 06 Oct 2015 23:08:42 GMT
i have a struct and 2 modules

typedef struct person{

               char *name;
                int id;

1-mod_person_adder -> add new person to system.
2-mod_person_counter -> counts total person number in system.

let say i allocate memory using mod_person_adder module

apr_palloc(r->server->process-> pool,sizeof(Person)); (Or any pool )

how can i reach this record in mod_person_counter module ? or how can

carry data like ap_table with key value between modules.  is it possible?

View raw message