From: Nishi Date: Mon, 14 Oct 2024 07:37:04 +0000 (+0000) Subject: module works X-Git-Url: https://git.chaotic.ninja/gitweb/nishi/?a=commitdiff_plain;h=ffe76a2115213750353a1a826eaac45d22401ffb;p=tewi.git module works git-svn-id: file:///raid/svn-personal/tewi/trunk@314 8739d7e6-ffea-ec47-b151-bdff447c6205 --- diff --git a/Module/Makefile b/Module/Makefile index 88f5933..2f7070f 100644 --- a/Module/Makefile +++ b/Module/Makefile @@ -18,4 +18,4 @@ all: mod_cgi$(LIBSUF) mod_proxy$(LIBSUF) $(CC) $(CFLAGS) -I ../Server -c -o $@ $< clean: - rm -f *.o *.so *.a *.dll *.tds + rm -f *.o *.so *.a *.dll *.tds *.obj diff --git a/Module/mod_proxy.c b/Module/mod_proxy.c index 96076a6..ab26a42 100644 --- a/Module/mod_proxy.c +++ b/Module/mod_proxy.c @@ -5,7 +5,7 @@ #include int MODULE_DECL mod_init(struct tw_config* config, struct tw_tool* tools) { - tools->log("CGI", "Initializing Proxy module"); + tools->log("Proxy", "Initializing Proxy module"); tools->add_version("Proxy/1.0"); return 0; } diff --git a/README.tmpl b/README.tmpl index b32db4d..a91c3ee 100644 --- a/README.tmpl +++ b/README.tmpl @@ -44,7 +44,8 @@ OpenBSD Working Haiku Working Minix Working UnixWare Working on 7.1.1 -OS/2 Mostly working, module is broken. Help required! +OS/2 Working +NetWare WIP PlayStation Portable Working, missing module support TODO: Get multi-threading working (maybe) PlayStation 2 Not working diff --git a/Server/server.c b/Server/server.c index 2e33661..05236d6 100644 --- a/Server/server.c +++ b/Server/server.c @@ -628,7 +628,11 @@ int tw_server_pass(void* ptr) { } #endif for(i = 0; i < config.module_count; i++) { +#ifdef __OS2__ + tw_mod_request_t mod_req = (tw_mod_request_t)tw_module_symbol(config.modules[i], "MOD_REQUEST"); +#else tw_mod_request_t mod_req = (tw_mod_request_t)tw_module_symbol(config.modules[i], "mod_request"); +#endif if(mod_req != NULL) { int ret = mod_req(&tools, &req, &res); int co = ret & 0xff; diff --git a/Server/tw_module.h b/Server/tw_module.h index e50d6ec..1c345d6 100644 --- a/Server/tw_module.h +++ b/Server/tw_module.h @@ -14,7 +14,7 @@ extern "C" { #define INCL_DOSMODULEMGR #define INCL_DOSERRORS #include -#define MODULE_DECL APIENTRY +#define MODULE_DECL __export APIENTRY #else #define MODULE_DECL #endif