]> Nishi Git Mirror - tewi.git/commitdiff
adding proxy module
authorNishi <nishi@nishi.boats>
Sun, 22 Sep 2024 16:40:40 +0000 (16:40 +0000)
committerNishi <nishi@nishi.boats>
Sun, 22 Sep 2024 16:40:40 +0000 (16:40 +0000)
git-svn-id: file:///raid/svn-personal/tewi/trunk@126 8739d7e6-ffea-ec47-b151-bdff447c6205

Module/Makefile
Module/mod_proxy.c [new file with mode: 0644]

index 48c192d5598b809f50ddd9a39cf22776b4b20977..3c24b728b2862bd845dba3a96a21e3830bb44bec 100644 (file)
@@ -5,7 +5,7 @@ include $(PWD)/Platform/$(PLATFORM).mk
 .PHONY: all clean
 .SUFFIXES: .c .o $(LIB)
 
-all: mod_cgi$(LIB)
+all: mod_cgi$(LIB) mod_proxy$(LIB)
 
 .o$(LIB):
        $(CC) $(LDFLAGS) -shared -o $@ $< ../Common/common.a $(LIBS)
diff --git a/Module/mod_proxy.c b/Module/mod_proxy.c
new file mode 100644 (file)
index 0000000..932db7a
--- /dev/null
@@ -0,0 +1,15 @@
+/* $Id$ */
+
+#include "../Server/tw_module.h"
+
+#include <cm_string.h>
+
+int mod_init(struct tw_config* config, struct tw_tool* tools) {
+       tools->log("CGI", "Initializing Proxy module");
+       tools->add_version("Proxy/1.0");
+       return 0;
+}
+
+int mod_config(struct tw_tool* tools, char** argv, int argc) { return TW_CONFIG_NOTME; }
+
+int mod_request(struct tw_tool* tools, struct tw_http_request* req, struct tw_http_response* res) { return TW_MODULE_PASS; }