add config parser
[project/uhttpd.git] / uhttpd.h
index 0cb8eb8..0c1cd8b 100644 (file)
--- a/uhttpd.h
+++ b/uhttpd.h
@@ -49,6 +49,13 @@ struct config {
        int http_keepalive;
 };
 
+struct auth_realm {
+       struct list_head list;
+       char path[PATH_MAX];
+       char user[32];
+       char pass[128];
+};
+
 enum http_method {
        UH_HTTP_MSG_GET,
        UH_HTTP_MSG_POST,
@@ -146,4 +153,6 @@ uh_client_error(struct client *cl, int code, const char *summary, const char *fm
 
 void uh_handle_file_request(struct client *cl);
 
+void uh_auth_add(const char *path, const char *user, const char *pass);
+
 #endif