Subversion Repositories Tewi

Rev

Rev 40 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
39 nishi 1
/* $Id: mod_cgi.c 39 2024-09-17 12:20:48Z nishi $ */
2
 
3
#include "../Server/tw_module.h"
4
 
5
int mod_init(struct tw_config* config, struct tw_tool* tools) {
6
	tools->log("CGI", "Initializing CGI module");
7
	tools->add_version("CGI/1.1");
8
	return 0;
9
}
10
 
11
int mod_config(struct tw_tool* tools, char** argv, int argc) {
12
	printf("args %d\n", argc);
13
	return TW_CONFIG_ERROR;
14
}
15
 
16
int mod_request(struct tw_tool* tools, struct tw_http_request* req, struct tw_http_response* res) { return TW_MODULE_PASS; }