Made htparser listening much more flexible.
[ashd.git] / src / htparser.h
diff --git a/src/htparser.h b/src/htparser.h
new file mode 100644 (file)
index 0000000..a84086c
--- /dev/null
@@ -0,0 +1,13 @@
+#ifndef _ASH_HTPARSER_H
+#define _ASH_HTPARSER_H
+
+struct conn {
+    int (*initreq)(struct conn *, struct hthead *);
+    void *pdata;
+};
+
+void serve(FILE *in, struct conn *conn);
+
+void handleplain(int argc, char **argp, char **argv);
+
+#endif