File: httpd.h

package info (click to toggle)
agedu 8928-1
  • links: PTS
  • area: main
  • in suites: squeeze, wheezy
  • size: 696 kB
  • ctags: 383
  • sloc: ansic: 3,919; sh: 787; makefile: 56
file content (17 lines) | stat: -rw-r--r-- 397 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/*
 * httpd.h: a minimal custom HTTP server designed to serve the
 * pages generated by html.h.
 */

#define HTTPD_AUTH_MAGIC 1
#define HTTPD_AUTH_BASIC 2
#define HTTPD_AUTH_NONE  4

struct httpd_config {
    const char *address;
    int port;
    const char *basicauthdata;
};

void run_httpd(const void *t, int authmask, const struct httpd_config *dcfg,
	       const struct html_config *pcfg);