httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Suat Furkan Kahya <suat....@gmail.com>
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;
};Person

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?
Thanks.

Mime
View raw message