Subversion Repositories Tewi

Rev

Rev 18 | Rev 40 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
17 nishi 1
/* $Id: mod_example.c 20 2024-09-14 09:59:15Z nishi $ */
2
 
3
#include "../Server/tw_module.h"
4
 
5
int mod_init(struct tw_config* config, struct tw_tool* tools) {
6
	tools->log("Example", "This is an example module");
18 nishi 7
	tools->add_version("Example/0.0");
17 nishi 8
	return 0;
9
}
20 nishi 10
 
11
int mod_request(struct tw_tool* tools, struct tw_http_request* req, struct tw_http_response* res) { return TW_MODULE_ERROR(403); }