Я прочитал этот сайт и сомневаюсь в 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 получить эту переменную.
Я знаю, кто получает указатель на функцию в C, используя LoadLibrary / dlopen, функцию GetProcAddress / dlsyn. Но никогда не смотрите, кто один исполняемый файл может получить переменную, определенную в библиотеке, кто-нибудь может мне помочь в этом сомнении?