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
10static bool httpModuleInit(httpserverapi *sapi);
11static bool httpModuleMain(httpserverapi *sapi);
12static bool httpModuleExit(httpserverapi *sapi);
13
14int main(int argc, char **argv) {
16 process::exit((httpModuleInit(&sapi) &&
17 httpModuleMain(&sapi) &&
18 httpModuleExit(&sapi))?0:1);
19}
20
21#endif
Definition avltree.h:11
Definition cgihttpserverapi.h:19
Definition httpserverapi.h:22
static void exit(int32_t status)