Controller: sending JSON configuration to router.

This commit is contained in:
Valentin Bartenev
2017-07-06 22:52:05 +03:00
parent 22d73057d9
commit c9fbd832ab
4 changed files with 288 additions and 33 deletions

View File

@@ -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_ */