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 way is to incorporate my module
in the build httpd system; just typing make does not compile my module.
Which build-files should I modify to accomplish this?
Cheers,
Andrej
On Sat, Sep 13, 2008 at 8:25 PM, Kevac Marko <[EMAIL PROTECTED]> wrote:
> 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 =
> (cache_server_conf *)ap_get_module_config(
> s->module_config, cache_module);
> if (!conf_cache) {
> ap_log_error(APLOG_MARK, APLOG_ERR, 0, s, ERRTAG "%s: "
> "Can't acquire mod_cache server configuration
> structure.",
> __func__);
> return;
> }
>
> On 9/13/08, Andrej van der Zee <[EMAIL PROTECTED]> wrote:
> > 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
> > module, but I don't know how to access them in *another* module (i.e.
> > mod_cgi). What is the way to do this? Any examples of this in the
> modules
> > that come with the sources?
> >
> > Cheers,
> >
> > Andrej
> >
>
>
> --
> С уважением, Кевац Марко
> Sincerely yours, Kevac Marko
>
--
Andrej van der Zee
2-40-19 Koenji-minami
Suginami-ku, Tokyo
166-0003 JAPAN
Mobile: 0031-(0)80-65251092
Phone/Fax: 0031-(0)3-3318-3155