私はこのサイトを読んで、Cに疑問を持っています.
/*
* Declare and populate the module's data structure. The
* name of this structure ('tut1_module') is important - it
* must match the name of the module. This structure is the
* only "glue" between the httpd core and the module.
*/
module AP_MODULE_DECLARE_DATA tut1_module =
{
// Only one callback function is provided. Real
// modules will need to declare callback functions for
// server/directory configuration, configuration merging
// and other tasks.
STANDARD20_MODULE_STUFF,
NULL,
NULL,
NULL,
NULL,
NULL,
mod_tut1_register_hooks, /* callback for registering hooks */
};
上記のセクションでは、どの apache がこの変数を取得するのかわかりません。LoadLibrary/dlopen、GetProcAddress/dlsyn関数を使用して、Cで関数ポインターを取得する人を知っています。しかし、実行可能ファイルがライブラリで定義された変数を取得する可能性があるのを見ないでください。誰もがこの疑いで私を助けることができますか?