Suggestion from James Beal: support a '--title' option to override the
[sgt/agedu] / httpd.h
diff --git a/httpd.h b/httpd.h
index fb3b1a5..a964e2f 100644 (file)
--- a/httpd.h
+++ b/httpd.h
@@ -3,4 +3,16 @@
  * pages generated by html.h.
  */
 
-void run_httpd(const void *t);
+#define HTTPD_AUTH_MAGIC 1
+#define HTTPD_AUTH_BASIC 2
+#define HTTPD_AUTH_NONE  4
+
+struct httpd_config {
+    const char *address;
+    int port;
+    int closeoneof;
+    const char *basicauthdata;
+};
+
+void run_httpd(const void *t, int authmask, const struct httpd_config *dcfg,
+              const struct html_config *pcfg);