pcs 98/02/06 10:25:22
Modified: src/include http_config.h
Log:
To support unloading dynamic modules, add a new element to the module
structure: dynamic_load_handle. This contains the handle of the
dynamically loaded module (used by mod_dll and mod_so) so it can be
unloaded later. This is initially set to NULL by the STANDARD_MODULE_STUFF
so no changes are needed to modules. Any shared modules built up to
now should be rebuild (the MMN could be bumped, but I don't think many
people will have big libraries of pre-built .so's yet. Oh, they might
have DLL's though. Um, prehaps MMN should be bumped up).
Revision Changes Path
1.64 +4 -1 apache-1.3/src/include/http_config.h
Index: http_config.h
===================================================================
RCS file: /export/home/cvs/apache-1.3/src/include/http_config.h,v
retrieving revision 1.63
retrieving revision 1.64
diff -u -r1.63 -r1.64
--- http_config.h 1998/02/01 22:05:33 1.63
+++ http_config.h 1998/02/06 18:25:22 1.64
@@ -176,6 +176,8 @@
const char *name;
+ void *dynamic_load_handle;
+
struct module_struct *next;
/* init() occurs after config parsing, but before any children are
@@ -254,7 +256,7 @@
*/
#define MODULE_MAGIC_NUMBER 19980201
-#define STANDARD_MODULE_STUFF MODULE_MAGIC_NUMBER, -1, __FILE__, NULL
+#define STANDARD_MODULE_STUFF MODULE_MAGIC_NUMBER, -1, __FILE__, NULL, NULL
/* Generic accessors for other modules to get at their own module-specific
* data
@@ -279,6 +281,7 @@
/* Finally, the hook for dynamically loading modules in... */
API_EXPORT(void) add_module(module *m);
+API_EXPORT(void) remove_module(module *m);
API_EXPORT(int) add_named_module(const char *name);
API_EXPORT(void) clear_module_list(void);
API_EXPORT(const char *) find_module_name(module *m);