make uh_path_lookup static
[project/uhttpd.git] / uhttpd.h
index 0cb8eb8..02d2705 100644 (file)
--- a/uhttpd.h
+++ b/uhttpd.h
@@ -28,6 +28,7 @@
 #include <libubox/uloop.h>
 #include <libubox/ustream.h>
 #include <libubox/blob.h>
+#include <libubox/utils.h>
 
 #include "utils.h"
 
@@ -40,6 +41,7 @@ struct config {
        char *realm;
        char *file;
        char *error_handler;
+       char *cgi_prefix;
        int no_symlinks;
        int no_dirlists;
        int network_timeout;
@@ -47,6 +49,14 @@ struct config {
        int tcp_keepalive;
        int max_requests;
        int http_keepalive;
+       int script_timeout;
+};
+
+struct auth_realm {
+       struct list_head list;
+       char *path;
+       char *user;
+       char *pass;
 };
 
 enum http_method {
@@ -109,6 +119,7 @@ struct client {
        struct blob_buf hdr;
 
        void (*dispatch_write_cb)(struct client *cl);
+       void (*dispatch_close_fds)(struct client *cl);
        void (*dispatch_free)(struct client *cl);
 
        union {
@@ -146,4 +157,9 @@ 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);
+
+void uh_close_listen_fds(void);
+void uh_close_fds(void);
+
 #endif