Rudiments

cgimodule.h
1 // Copyright (c) 1999-2018 David Muse
2 // See the COPYING file for more information
3
4 #ifndef RUDIMENTS_CGIMODULE_H
5 #define RUDIMENTS_CGIMODULE_H
6
7 #include <rudiments/cgihttpserverapi.h>
8 #include <rudiments/process.h>
9
10 static bool httpModuleMain(httpserverapi *sapi);
11
12 int main(int argc, char **argv) {
13 cgihttpserverapi sapi(NULL);
14 process::exit(httpModuleMain(&sapi)?0:1);
15 }
16
17 #endif
cgihttpserverapi
Definition: cgihttpserverapi.h:9
httpserverapi
Definition: httpserverapi.h:9
process::exit
static void exit(int32_t status)