source:
Main/trunk/Module/mod_example.c@
27
Last change on this file since 27 was 20, checked in by , on Sep 14, 2024 at 6:59:15 PM | |
---|---|
|
|
File size: 344 bytes |
Line | |
---|---|
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"); |
7 | tools->add_version("Example/0.0"); |
8 | return 0; |
9 | } |
10 | |
11 | int mod_request(struct tw_tool* tools, struct tw_http_request* req, struct tw_http_response* res) { return TW_MODULE_ERROR(403); } |
Note:
See TracBrowser
for help on using the repository browser.