From 3ceccd02d86bf4d6609f46d8b30963cc52034cc2 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Tue, 23 Nov 2021 11:47:08 +0100 Subject: ucode: add ucode plugin support The ucode plugin mirrors the functionality of the Lua module, but using the ucode script interpreter instead. Signed-off-by: Jo-Philipp Wich --- uhttpd.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'uhttpd.h') diff --git a/uhttpd.h b/uhttpd.h index e61e176..d230b31 100644 --- a/uhttpd.h +++ b/uhttpd.h @@ -33,6 +33,9 @@ #include #include #endif +#ifdef HAVE_UCODE +#include +#endif #ifdef HAVE_TLS #include #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 { -- cgit v1.2.3