summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_conf.h
diff options
context:
space:
mode:
authorValentin Bartenev <vbart@nginx.com>2017-07-06 22:52:05 +0300
committerValentin Bartenev <vbart@nginx.com>2017-07-06 22:52:05 +0300
commitc9fbd832ab4f5743824b155fb3bf3a42206fdd52 (patch)
treec71a2e2b12c9d6d29d4a855d7a76b0abb6eade10 /src/nxt_conf.h
parent22d73057d93bc5f363a981763348612058077159 (diff)
downloadunit-c9fbd832ab4f5743824b155fb3bf3a42206fdd52.tar.gz
unit-c9fbd832ab4f5743824b155fb3bf3a42206fdd52.tar.bz2
Controller: sending JSON configuration to router.
Diffstat (limited to 'src/nxt_conf.h')
-rw-r--r--src/nxt_conf.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/nxt_conf.h b/src/nxt_conf.h
index 64997b56..d9021732 100644
--- a/src/nxt_conf.h
+++ b/src/nxt_conf.h
@@ -77,5 +77,13 @@ u_char *nxt_conf_json_print(u_char *p, nxt_conf_value_t *value,
nxt_int_t nxt_conf_validate(nxt_conf_value_t *value);
+void nxt_conf_get_string(nxt_conf_value_t *value, nxt_str_t *str);
+
+// FIXME reimplement and reorder functions below
+nxt_uint_t nxt_conf_object_members_count(nxt_conf_value_t *value);
+nxt_conf_value_t *nxt_conf_create_object(nxt_mp_t *mp, nxt_uint_t count);
+nxt_int_t nxt_conf_set_object_member(nxt_mp_t *mp, nxt_conf_value_t *object,
+ nxt_str_t *name, nxt_conf_value_t *value, uint32_t index);
+
#endif /* _NXT_CONF_INCLUDED_ */