Hi.
I was browsing through the apache source code and I found the following in the mod_so.c file:
Code:
module AP_MODULE_DECLARE_DATA so_module = {
STANDARD20_MODULE_STUFF,
NULL, /* create per-dir config */
NULL, /* merge per-dir config */
so_sconf_create, /* server config */
NULL, /* merge server config */
so_cmds, /* command apr_table_t */
register_hooks /* register hooks */
};
I guess the AP_MODULE_DECLARE_DATA is a structure, but can somebody explain to me, what the "module" can be?
As I know if I declare a structure like this:
Code:
typedef struct
{
int variable;
} my_struct_t;
than I will be able to use this structure like this:
Code:
my_struct_t obj = {
10;
};
Just to be clear, I'm not interested in what this structure is actually doing in apache, it is just an example to my question.
Can be the "module" keyword only just an alias for struct, so it would be something like this?
struct AP_MODULE_DECLARE_DATA so_module;
Thank you.