ucode: add ucode plugin support
[project/uhttpd.git] / uhttpd.h
index e61e176d39e38880f341bb9412902d89fbd98bd8..d230b31343cfbcaa15dc8e60803c275078988283 100644 (file)
--- 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;
@@ -85,6 +97,9 @@ struct config {
        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 {