summaryrefslogtreecommitdiff
path: root/uhttpd.h
diff options
context:
space:
mode:
Diffstat (limited to 'uhttpd.h')
-rw-r--r--uhttpd.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/uhttpd.h b/uhttpd.h
index 925b7bb..8445c60 100644
--- a/uhttpd.h
+++ b/uhttpd.h
@@ -33,6 +33,9 @@
#include <libubus.h>
#include <json-c/json.h>
#endif
+#ifdef HAVE_UCODE
+#include <ucode/vm.h>
+#endif
#ifdef HAVE_TLS
#include <libubox/ustream-ssl.h>
#endif
@@ -59,6 +62,15 @@ struct lua_prefix {
void *ctx;
};
+#ifdef HAVE_UCODE
+struct ucode_prefix {
+ struct list_head list;
+ const char *handler;
+ const char *prefix;
+ uc_vm_t ctx;
+};
+#endif
+
struct config {
const char *docroot;
const char *realm;
@@ -69,6 +81,7 @@ struct config {
const char *cgi_path;
const char *ubus_prefix;
const char *ubus_socket;
+ const char *dirlist_charset;
int no_symlinks;
int no_dirlists;
int network_timeout;
@@ -82,8 +95,12 @@ struct config {
int ubus_noauth;
int ubus_cors;
int cgi_prefix_len;
+ int events_retry;
struct list_head cgi_alias;
struct list_head lua_prefix;
+#ifdef HAVE_UCODE
+ struct list_head ucode_prefix;
+#endif
};
struct auth_realm {
@@ -209,6 +226,7 @@ struct dispatch_ubus {
struct json_tokener *jstok;
struct json_object *jsobj;
struct json_object *jsobj_cur;
+ char *url_path;
int post_len;
uint32_t obj;
@@ -218,6 +236,9 @@ struct dispatch_ubus {
bool req_pending;
bool array;
int array_idx;
+ bool legacy; /* Got legacy request => use legacy reply */
+
+ struct ubus_subscriber sub;
};
#endif