This is a discussion on Question about Apache Modules within the Apache Web Server forums, part of the Web Server and Related Forums category; Hi ! I have a question about Apache Modules. Apache module functions are "static" function. Why? If you will ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi !
I have a question about Apache Modules. Apache module functions are "static" function. Why? If you will help, I thank you in advance! /* Example of a handler */ static int ex_auth_checker(request_rec *r) { .... return OK; } /* Registration of handlers */ static void example_register_hooks(apr_pool_t *p) { ap_hook_auth_checker(ex_auth_checker, NULL, NULL, APR_MIDDLE); .... } /* command table */ static const command_rec example_cmds[ ] = { AP_INIT_NO_ARGS("Example", cmd_example, NULL, OR_OPTIONS, "Example directive - no arguments"), {NULL} ); |