Skip to content

Commit 52b334a

Browse files
committed
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 <[email protected]> Signed-off-by: Andrew Clayton <[email protected]>
1 parent 46573e6 commit 52b334a

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/nxt_application.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ typedef enum {
2121
NXT_APP_PERL,
2222
NXT_APP_RUBY,
2323
NXT_APP_JAVA,
24+
NXT_APP_WASM,
2425

2526
NXT_APP_UNKNOWN,
2627
} nxt_app_type_t;

src/nxt_router.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,7 @@ static const nxt_str_t *nxt_app_msg_prefix[] = {
280280
[NXT_APP_PERL] = &http_prefix,
281281
[NXT_APP_RUBY] = &http_prefix,
282282
[NXT_APP_JAVA] = &empty_prefix,
283+
[NXT_APP_WASM] = &empty_prefix,
283284
};
284285

285286

0 commit comments

Comments
 (0)