You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Suat Furkan Kahya <su...@gmail.com> on 2015/10/07 01:08:42 UTC

[users@httpd] a newbie question: Share custom Data between modules

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.

Re: [users@httpd] a newbie question: Share custom Data between modules

Posted by Suat Furkan Kahya <su...@gmail.com>.
Thanks for information.

2015-10-07 2:56 GMT+03:00 Kurtis Rader <kr...@skepticism.us>:

> On Tue, Oct 6, 2015 at 4:08 PM, Suat Furkan Kahya <su...@gmail.com>
> wrote:
>
>> 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.
>>
>
> You are unlikely to get an answer on this mailing list. Even though
> developers (like myself) read this mailing list it isn't the correct forum
> for such questions. Check out the "Third-Party Module Authors' List" on
> this page: http://httpd.apache.org/lists.html
>
> --
> Kurtis Rader
> Caretaker of the exceptional canines Junior and Hank
>

Re: [users@httpd] a newbie question: Share custom Data between modules

Posted by Kurtis Rader <kr...@skepticism.us>.
On Tue, Oct 6, 2015 at 4:08 PM, Suat Furkan Kahya <su...@gmail.com>
wrote:

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

You are unlikely to get an answer on this mailing list. Even though
developers (like myself) read this mailing list it isn't the correct forum
for such questions. Check out the "Third-Party Module Authors' List" on
this page: http://httpd.apache.org/lists.html

-- 
Kurtis Rader
Caretaker of the exceptional canines Junior and Hank