summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/nxt_conf.c7
-rw-r--r--src/nxt_conf.h1
2 files changed, 8 insertions, 0 deletions
diff --git a/src/nxt_conf.c b/src/nxt_conf.c
index 2255e12f..f69133cc 100644
--- a/src/nxt_conf.c
+++ b/src/nxt_conf.c
@@ -361,6 +361,13 @@ nxt_conf_set_element_string_dup(nxt_conf_value_t *array, nxt_mp_t *mp,
nxt_uint_t
+nxt_conf_array_elements_count(nxt_conf_value_t *value)
+{
+ return value->u.array->count;
+}
+
+
+nxt_uint_t
nxt_conf_type(nxt_conf_value_t *value)
{
switch (value->type) {
diff --git a/src/nxt_conf.h b/src/nxt_conf.h
index 48521917..7c360dfe 100644
--- a/src/nxt_conf.h
+++ b/src/nxt_conf.h
@@ -125,6 +125,7 @@ void nxt_conf_set_element(nxt_conf_value_t *array, nxt_uint_t index,
nxt_conf_value_t *value);
nxt_int_t nxt_conf_set_element_string_dup(nxt_conf_value_t *array, nxt_mp_t *mp,
nxt_uint_t index, nxt_str_t *value);
+nxt_uint_t nxt_conf_array_elements_count(nxt_conf_value_t *value);
#endif /* _NXT_CONF_INCLUDED_ */