summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAndrew Clayton <a.clayton@nginx.com>2024-02-05 21:43:14 +0000
committerAndrew Clayton <a.clayton@nginx.com>2024-02-21 16:20:32 +0000
commitf0782722654158c38193183e4c9b74925a0c52ef (patch)
tree895c4460b6348b0086052e6cda6e1bfa8a9902b6
parentf2e6447567eef6eeafa833adae0ef155568ec20f (diff)
downloadunit-f0782722654158c38193183e4c9b74925a0c52ef.tar.gz
unit-f0782722654158c38193183e4c9b74925a0c52ef.tar.bz2
Wasm-wc: Add core configuration data structure
This is required to actually _build_ the 'wasm-wasi-componet' language module. The nxt_wasm_wc_app_conf_t structure consists of the component name, e.g my_component.wasm, this is required. It also consists of an object to store the directories that are allowed access to by the component, this is optional. The bulk of the configuration infrastructure will be added in a subsequent commit. Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
-rw-r--r--src/nxt_application.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/nxt_application.h b/src/nxt_application.h
index f526c20d..f5d7a9df 100644
--- a/src/nxt_application.h
+++ b/src/nxt_application.h
@@ -105,6 +105,13 @@ typedef struct {
} nxt_wasm_app_conf_t;
+typedef struct {
+ const char *component;
+
+ nxt_conf_value_t *access;
+} nxt_wasm_wc_app_conf_t;
+
+
struct nxt_common_app_conf_s {
nxt_str_t name;
nxt_str_t type;
@@ -134,6 +141,7 @@ struct nxt_common_app_conf_s {
nxt_ruby_app_conf_t ruby;
nxt_java_app_conf_t java;
nxt_wasm_app_conf_t wasm;
+ nxt_wasm_wc_app_conf_t wasm_wc;
} u;
nxt_conf_value_t *self;