nxt_conf.h (44:98ba4675f2d7) nxt_conf.h (45:134a5747eec7)
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_
9#define _NXT_CONF_INCLUDED_
10
11
12typedef struct nxt_conf_json_value_s nxt_conf_json_value_t;
13
14
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_
9#define _NXT_CONF_INCLUDED_
10
11
12typedef struct nxt_conf_json_value_s nxt_conf_json_value_t;
13
14
15typedef struct {
16 nxt_uint_t level;
17 nxt_bool_t more_space; /* 1 bit. */
18} nxt_conf_json_pretty_t;
19
20
15nxt_conf_json_value_t *nxt_conf_json_parse(u_char *pos, size_t length,
16 nxt_mem_pool_t *pool);
21nxt_conf_json_value_t *nxt_conf_json_parse(u_char *pos, size_t length,
22 nxt_mem_pool_t *pool);
17nxt_buf_t *nxt_conf_json_print(nxt_conf_json_value_t *value,
18 nxt_mem_pool_t *pool);
23uintptr_t nxt_conf_json_print_value(u_char *pos, nxt_conf_json_value_t *value,
24 nxt_conf_json_pretty_t *pretty);
19
20
21#endif /* _NXT_CONF_INCLUDED_ */
25
26
27#endif /* _NXT_CONF_INCLUDED_ */