a newbie question: Share custom Data between modules

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux