source: Main/trunk/Module/mod_cgi.c@ 39

Last change on this file since 39 was 39, checked in by Nishi, on Sep 17, 2024 at 9:20:48 PM

custom config

  • Property svn:keywords set to Id
File size: 447 bytes
Line 
1/* $Id: mod_cgi.c 39 2024-09-17 12:20:48Z nishi $ */
2
3#include "../Server/tw_module.h"
4
5int 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
11int mod_config(struct tw_tool* tools, char** argv, int argc) {
12 printf("args %d\n", argc);
13 return TW_CONFIG_ERROR;
14}
15
16int mod_request(struct tw_tool* tools, struct tw_http_request* req, struct tw_http_response* res) { return TW_MODULE_PASS; }
Note: See TracBrowser for help on using the repository browser.