summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_conf.h
diff options
context:
space:
mode:
authorValentin Bartenev <vbart@nginx.com>2017-08-16 15:45:12 +0300
committerValentin Bartenev <vbart@nginx.com>2017-08-16 15:45:12 +0300
commit95907e29128c51be79aec0b5149e2639c3fd9042 (patch)
tree56e266c7a914e2cd8e32a8c3de9f3d41447340f6 /src/nxt_conf.h
parent2dd8048bf9d80d045f3df8f0930c3325bf8a14f9 (diff)
downloadunit-95907e29128c51be79aec0b5149e2639c3fd9042.tar.gz
unit-95907e29128c51be79aec0b5149e2639c3fd9042.tar.bz2
Object mapping interface extended with more string types.
Diffstat (limited to 'src/nxt_conf.h')
-rw-r--r--src/nxt_conf.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/nxt_conf.h b/src/nxt_conf.h
index 30863fbf..3ff07e08 100644
--- a/src/nxt_conf.h
+++ b/src/nxt_conf.h
@@ -38,6 +38,8 @@ typedef enum {
NXT_CONF_MAP_MSEC,
NXT_CONF_MAP_DOUBLE,
NXT_CONF_MAP_STR,
+ NXT_CONF_MAP_STR_COPY,
+ NXT_CONF_MAP_CSTRZ,
NXT_CONF_MAP_PTR,
} nxt_conf_map_type_t;
@@ -63,8 +65,8 @@ nxt_conf_value_t *nxt_conf_get_object_member(nxt_conf_value_t *value,
nxt_conf_value_t *nxt_conf_next_object_member(nxt_conf_value_t *value,
nxt_str_t *name, uint32_t *next);
-nxt_int_t nxt_conf_map_object(nxt_conf_value_t *value, nxt_conf_map_t *map,
- nxt_uint_t n, void *data);
+nxt_int_t nxt_conf_map_object(nxt_mp_t *mp, nxt_conf_value_t *value,
+ nxt_conf_map_t *map, nxt_uint_t n, void *data);
nxt_int_t nxt_conf_op_compile(nxt_mp_t *mp, nxt_conf_op_t **ops,
nxt_conf_value_t *root, nxt_str_t *path, nxt_conf_value_t *value);