Change the magic number used to introduce a trie file, so that instead
[sgt/agedu] / httpd.h
CommitLineData
70322ae3 1/*
2 * httpd.h: a minimal custom HTTP server designed to serve the
3 * pages generated by html.h.
4 */
5
812e4bf2 6#define HTTPD_AUTH_MAGIC 1
7#define HTTPD_AUTH_BASIC 2
8#define HTTPD_AUTH_NONE 4
9
1e8d78b9 10struct httpd_config {
6f25b662 11 const char *address, *port;
a8a4d6d8 12 int closeoneof;
1e8d78b9 13 const char *basicauthdata;
14};
15
16void run_httpd(const void *t, int authmask, const struct httpd_config *dcfg,
17 const struct html_config *pcfg);