Skip to content

Commit f078272

Browse files
committed
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 <[email protected]>
1 parent f2e6447 commit f078272

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/nxt_application.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,13 @@ typedef struct {
105105
} nxt_wasm_app_conf_t;
106106

107107

108+
typedef struct {
109+
const char *component;
110+
111+
nxt_conf_value_t *access;
112+
} nxt_wasm_wc_app_conf_t;
113+
114+
108115
struct nxt_common_app_conf_s {
109116
nxt_str_t name;
110117
nxt_str_t type;
@@ -134,6 +141,7 @@ struct nxt_common_app_conf_s {
134141
nxt_ruby_app_conf_t ruby;
135142
nxt_java_app_conf_t java;
136143
nxt_wasm_app_conf_t wasm;
144+
nxt_wasm_wc_app_conf_t wasm_wc;
137145
} u;
138146

139147
nxt_conf_value_t *self;

0 commit comments

Comments
 (0)