nxt_conf.h (357:b80698152fcd) nxt_conf.h (507:fa714d76592b)
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) Valentin V. Bartenev
5 * Copyright (C) NGINX, Inc.
6 */
7
8#ifndef _NXT_CONF_INCLUDED_

--- 86 unchanged lines hidden (view full) ---

95u_char *nxt_conf_json_print(u_char *p, nxt_conf_value_t *value,
96 nxt_conf_json_pretty_t *pretty);
97void nxt_conf_json_position(u_char *start, u_char *pos, nxt_uint_t *line,
98 nxt_uint_t *column);
99
100nxt_int_t nxt_conf_validate(nxt_conf_validation_t *vldt);
101
102void nxt_conf_get_string(nxt_conf_value_t *value, nxt_str_t *str);
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) Valentin V. Bartenev
5 * Copyright (C) NGINX, Inc.
6 */
7
8#ifndef _NXT_CONF_INCLUDED_

--- 86 unchanged lines hidden (view full) ---

95u_char *nxt_conf_json_print(u_char *p, nxt_conf_value_t *value,
96 nxt_conf_json_pretty_t *pretty);
97void nxt_conf_json_position(u_char *start, u_char *pos, nxt_uint_t *line,
98 nxt_uint_t *column);
99
100nxt_int_t nxt_conf_validate(nxt_conf_validation_t *vldt);
101
102void nxt_conf_get_string(nxt_conf_value_t *value, nxt_str_t *str);
103int64_t nxt_conf_get_integer(nxt_conf_value_t *value);
103
104// FIXME reimplement and reorder functions below
105nxt_uint_t nxt_conf_object_members_count(nxt_conf_value_t *value);
106nxt_conf_value_t *nxt_conf_create_object(nxt_mp_t *mp, nxt_uint_t count);
107void nxt_conf_set_member(nxt_conf_value_t *object, nxt_str_t *name,
108 nxt_conf_value_t *value, uint32_t index);
109void nxt_conf_set_member_string(nxt_conf_value_t *object, nxt_str_t *name,
110 nxt_str_t *value, uint32_t index);
111void nxt_conf_set_member_integer(nxt_conf_value_t *object, nxt_str_t *name,
112 int64_t value, uint32_t index);
113
114
115#endif /* _NXT_CONF_INCLUDED_ */
104
105// FIXME reimplement and reorder functions below
106nxt_uint_t nxt_conf_object_members_count(nxt_conf_value_t *value);
107nxt_conf_value_t *nxt_conf_create_object(nxt_mp_t *mp, nxt_uint_t count);
108void nxt_conf_set_member(nxt_conf_value_t *object, nxt_str_t *name,
109 nxt_conf_value_t *value, uint32_t index);
110void nxt_conf_set_member_string(nxt_conf_value_t *object, nxt_str_t *name,
111 nxt_str_t *value, uint32_t index);
112void nxt_conf_set_member_integer(nxt_conf_value_t *object, nxt_str_t *name,
113 int64_t value, uint32_t index);
114
115
116#endif /* _NXT_CONF_INCLUDED_ */