summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_conf_validation.c
diff options
context:
space:
mode:
authorAndrew Clayton <a.clayton@nginx.com>2023-04-12 15:53:29 +0100
committerAndrew Clayton <a.clayton@nginx.com>2024-11-15 00:52:38 +0000
commit6c085cfaf4f2244af72d1f98517e2908129120c5 (patch)
treeafce4fb966b10986ba1b5817bc2c1bf69a5ace66 /src/nxt_conf_validation.c
parenta35517901fb3c7d524739fc4fcf9e531d6404487 (diff)
downloadunit-6c085cfaf4f2244af72d1f98517e2908129120c5.tar.gz
unit-6c085cfaf4f2244af72d1f98517e2908129120c5.tar.bz2
Add a skeleton language module.skel_lm
Module is called 'skel'. Configure with $ ./configure skel Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
Diffstat (limited to 'src/nxt_conf_validation.c')
-rw-r--r--src/nxt_conf_validation.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/nxt_conf_validation.c b/src/nxt_conf_validation.c
index a0b4992f..6c473055 100644
--- a/src/nxt_conf_validation.c
+++ b/src/nxt_conf_validation.c
@@ -1203,6 +1203,17 @@ static nxt_conf_vldt_object_t nxt_conf_vldt_wasm_access_members[] = {
};
+static nxt_conf_vldt_object_t nxt_conf_vldt_skel_members[] = {
+ {
+ .name = nxt_string("module"),
+ .type = NXT_CONF_VLDT_STRING,
+ .flags = NXT_CONF_VLDT_REQUIRED,
+ },
+
+ NXT_CONF_VLDT_NEXT(nxt_conf_vldt_common_members)
+};
+
+
static nxt_conf_vldt_object_t nxt_conf_vldt_common_members[] = {
{
.name = nxt_string("type"),
@@ -2872,6 +2883,7 @@ nxt_conf_vldt_app(nxt_conf_validation_t *vldt, nxt_str_t *name,
{ nxt_conf_vldt_object, nxt_conf_vldt_java_members },
{ nxt_conf_vldt_object, nxt_conf_vldt_wasm_members },
{ nxt_conf_vldt_object, nxt_conf_vldt_wasm_wc_members },
+ { nxt_conf_vldt_object, nxt_conf_vldt_skel_members },
};
ret = nxt_conf_vldt_type(vldt, name, value, NXT_CONF_VLDT_OBJECT);