summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAndrew Clayton <a.clayton@nginx.com>2024-02-05 21:32:00 +0000
committerAndrew Clayton <a.clayton@nginx.com>2024-02-21 16:20:32 +0000
commitf2e6447567eef6eeafa833adae0ef155568ec20f (patch)
tree2d2f9e9289fe70402fa3946a76352b046a6e7f99
parentbca44630ed50da036da056f0f89c48f9a30a19cc (diff)
downloadunit-f2e6447567eef6eeafa833adae0ef155568ec20f.tar.gz
unit-f2e6447567eef6eeafa833adae0ef155568ec20f.tar.bz2
Wasm-wc: Register a new Wasm component model language module type
This is the first commit in adding WebAssembly Component Model language module support. This just adds a new NXT_APP_WASM_WC type, required by subsequent commits. The WC stands for WASI_COMPONENT This new module will have a type of 'wasm-wasi-component'. Link: <https://github.com/nginx/unit/issues/1098> Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
-rw-r--r--src/nxt_application.h1
-rw-r--r--src/nxt_router.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/nxt_application.h b/src/nxt_application.h
index 64866db6..f526c20d 100644
--- a/src/nxt_application.h
+++ b/src/nxt_application.h
@@ -22,6 +22,7 @@ typedef enum {
NXT_APP_RUBY,
NXT_APP_JAVA,
NXT_APP_WASM,
+ NXT_APP_WASM_WC,
NXT_APP_UNKNOWN,
} nxt_app_type_t;
diff --git a/src/nxt_router.c b/src/nxt_router.c
index 947836c8..1a1aca2b 100644
--- a/src/nxt_router.c
+++ b/src/nxt_router.c
@@ -281,6 +281,7 @@ static const nxt_str_t *nxt_app_msg_prefix[] = {
[NXT_APP_RUBY] = &http_prefix,
[NXT_APP_JAVA] = &empty_prefix,
[NXT_APP_WASM] = &empty_prefix,
+ [NXT_APP_WASM_WC] = &empty_prefix,
};