You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by pc...@hyperreal.org on 1998/02/06 19:25:23 UTC
cvs commit: apache-1.3/src/include http_config.h
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);
Re: cvs commit: apache-1.3/src/include http_config.h
Posted by Rodent of Unusual Size <Ke...@Golux.Com>.
pcs@hyperreal.org wrote:
>
> 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).
Whoa! Any non-shared modules will need to be recompiled, too! And
MMN should *definitely* be bumped, since anything which isn't marked
correctly in a Makefile (i.e., anything which won't get rebuilt because
it doesn't notice this change) will be broken, broken, broken. We
need to sense the change at run-time in case it wasn't detected at
compile-time.
#ken P-)}