httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ralf S. Engelschall" <...@engelschall.com>
Subject Re: source code
Date Thu, 20 Aug 1998 10:00:39 GMT

> I'm an engenear.
> I'm working at the telecomunication department of
> Pisa University, and I'm studing server Apache source code
> Version 1.3.0
> I use a Linux platform and I think the server process
> begin whit REALMAIN function in file http_main.c
> Following source code, REALMAIN calls ap_setup_prelinked_modules
> in file http_config.c. This function calls ap_add_module
> always in the same file. ap_add_module run the following
> test: if(m->version!=MODULE_MAGIC_NUMBER.
> I should like to know where and when the version entry of
> struct module has been created and initialized.

It's implicitly created by the STANDARD_MODULE_STUFF macro every module uses
in it's source file at the definition top of the module structure. Look
inside http_config.h for details.
                                       Ralf S. Engelschall
                                       rse@engelschall.com
                                       www.engelschall.com

Mime
View raw message