From 52b334acd1a5678ee111d6db73dc02675c21a277 Mon Sep 17 00:00:00 2001 From: Andrew Clayton Date: Wed, 9 Aug 2023 17:09:30 +0100 Subject: [PATCH] Wasm: Register a new WebAssembly language module type. This is the first patch in adding WebAssembly language module support. This just adds a new NXT_APP_WASM type, required by subsequent commits. Reviewed-by: Alejandro Colomar Signed-off-by: Andrew Clayton --- src/nxt_application.h | 1 + src/nxt_router.c | 1 + 2 files changed, 2 insertions(+) diff --git a/src/nxt_application.h b/src/nxt_application.h index 2675e6a0..4efe3750 100644 --- a/src/nxt_application.h +++ b/src/nxt_application.h @@ -21,6 +21,7 @@ typedef enum { NXT_APP_PERL, NXT_APP_RUBY, NXT_APP_JAVA, + NXT_APP_WASM, NXT_APP_UNKNOWN, } nxt_app_type_t; diff --git a/src/nxt_router.c b/src/nxt_router.c index 5d9c60a1..4e3cb303 100644 --- a/src/nxt_router.c +++ b/src/nxt_router.c @@ -280,6 +280,7 @@ static const nxt_str_t *nxt_app_msg_prefix[] = { [NXT_APP_PERL] = &http_prefix, [NXT_APP_RUBY] = &http_prefix, [NXT_APP_JAVA] = &empty_prefix, + [NXT_APP_WASM] = &empty_prefix, };