summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_conf_validation.c
diff options
context:
space:
mode:
authorAlexander Borisov <alexander.borisov@nginx.com>2018-01-31 15:47:00 +0300
committerAlexander Borisov <alexander.borisov@nginx.com>2018-01-31 15:47:00 +0300
commit960962ddce87f6b401523b4426e8b5c61544ec7b (patch)
tree3c6fa7d9871701bca291ea5899a98397dacc5a87 /src/nxt_conf_validation.c
parent311db93f006153c309b975942c2415655e2ff417 (diff)
downloadunit-960962ddce87f6b401523b4426e8b5c61544ec7b.tar.gz
unit-960962ddce87f6b401523b4426e8b5c61544ec7b.tar.bz2
Added Perl support.
Diffstat (limited to 'src/nxt_conf_validation.c')
-rw-r--r--src/nxt_conf_validation.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/nxt_conf_validation.c b/src/nxt_conf_validation.c
index e4109b00..33e739ea 100644
--- a/src/nxt_conf_validation.c
+++ b/src/nxt_conf_validation.c
@@ -214,6 +214,16 @@ static nxt_conf_vldt_object_t nxt_conf_vldt_go_members[] = {
};
+static nxt_conf_vldt_object_t nxt_conf_vldt_perl_members[] = {
+ { nxt_string("script"),
+ NXT_CONF_VLDT_STRING,
+ NULL,
+ NULL },
+
+ NXT_CONF_VLDT_NEXT(&nxt_conf_vldt_common_members)
+};
+
+
nxt_int_t
nxt_conf_validate(nxt_conf_validation_t *vldt)
{
@@ -402,6 +412,7 @@ nxt_conf_vldt_app(nxt_conf_validation_t *vldt, nxt_str_t *name,
nxt_conf_vldt_python_members,
nxt_conf_vldt_php_members,
nxt_conf_vldt_go_members,
+ nxt_conf_vldt_perl_members,
};
ret = nxt_conf_vldt_type(vldt, name, value, NXT_CONF_VLDT_OBJECT);