Re: Access configuration variable in other modules

2008-09-13 Thread Kevac Marko
> Though, it seems to imply that I have to export my own module in a header > file and include it in mod_cgi. In other words, I have to add my module to > the httpd build system. So I copied my module to the modules/generator > directory. But I am not sure what the good way is to incorporate m

Re: Access configuration variable in other modules

2008-09-13 Thread Andrej van der Zee
Thanks, that seems satisfactory! Though, it seems to imply that I have to export my own module in a header file and include it in mod_cgi. In other words, I have to add my module to the httpd build system. So I copied my module to the modules/generator directory. But I am not sure what the good w

Re: Access configuration variable in other modules

2008-09-13 Thread Kevac Marko
Catch the example: cache_module = ap_find_linked_module("mod_cache.c"); if (!cache_module) { ap_log_error(APLOG_MARK, APLOG_ERR, 0, s, ERRTAG "%s: " "Can't find mod_cache module.", __func__); return; } conf_cache =

Access configuration variable in other modules

2008-09-13 Thread Andrej van der Zee
Hi, I am writing my first Apache module for monitoring resource usage of embedded interpreters and CGI applications on Linux (I am also adapting mod_cgi and the apr-library). The problem is that my own module has some server-level configuration options that I can initialize and use in my own modul

Access configuration variable in other modules

2008-09-13 Thread Andrej van der Zee
Hi, I am writing my first Apache module for monitoring resource usage of embedded interpreters and CGI applications on Linux (I am also adapting mod_cgi and the apr-library). The problem is that my own module has some server-level configuration options that I can initialize and use in my own modul