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 <alx@nginx.com>
Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
This commit is contained in:
Andrew Clayton
2023-08-09 17:09:30 +01:00
parent 46573e6993
commit 52b334acd1
2 changed files with 2 additions and 0 deletions

View File

@@ -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;

View File

@@ -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,
};