summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_conf.h
diff options
context:
space:
mode:
authorValentin Bartenev <vbart@nginx.com>2018-06-07 16:17:30 +0300
committerValentin Bartenev <vbart@nginx.com>2018-06-07 16:17:30 +0300
commit771dc2f55ebff313b99494411f8795e7a6fb76d5 (patch)
tree42ca1ecd88c5a2ea6af733c274fc264dbd189759 /src/nxt_conf.h
parentceeb30188152426d76eac1f40ca8ceb24ddb5d0a (diff)
downloadunit-771dc2f55ebff313b99494411f8795e7a6fb76d5.tar.gz
unit-771dc2f55ebff313b99494411f8795e7a6fb76d5.tar.bz2
Exported functions for accessing configuration values.
Diffstat (limited to 'src/nxt_conf.h')
-rw-r--r--src/nxt_conf.h19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/nxt_conf.h b/src/nxt_conf.h
index a7675d3b..3b0f09ff 100644
--- a/src/nxt_conf.h
+++ b/src/nxt_conf.h
@@ -66,17 +66,18 @@ typedef struct {
} nxt_conf_validation_t;
-nxt_uint_t nxt_conf_type(nxt_conf_value_t *value);
+NXT_EXPORT nxt_uint_t nxt_conf_type(nxt_conf_value_t *value);
-nxt_conf_value_t *nxt_conf_get_path(nxt_conf_value_t *value, nxt_str_t *path);
-nxt_conf_value_t *nxt_conf_get_object_member(nxt_conf_value_t *value,
+NXT_EXPORT nxt_conf_value_t *nxt_conf_get_path(nxt_conf_value_t *value,
+ nxt_str_t *path);
+NXT_EXPORT nxt_conf_value_t *nxt_conf_get_object_member(nxt_conf_value_t *value,
nxt_str_t *name, uint32_t *index);
-nxt_conf_value_t *nxt_conf_next_object_member(nxt_conf_value_t *value,
- nxt_str_t *name, uint32_t *next);
-nxt_conf_value_t *nxt_conf_get_array_element(nxt_conf_value_t *value,
+NXT_EXPORT nxt_conf_value_t *nxt_conf_next_object_member(
+ nxt_conf_value_t *value, nxt_str_t *name, uint32_t *next);
+NXT_EXPORT nxt_conf_value_t *nxt_conf_get_array_element(nxt_conf_value_t *value,
uint32_t index);
-nxt_int_t nxt_conf_map_object(nxt_mp_t *mp, nxt_conf_value_t *value,
+NXT_EXPORT 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,
@@ -99,8 +100,8 @@ void nxt_conf_json_position(u_char *start, u_char *pos, nxt_uint_t *line,
nxt_int_t nxt_conf_validate(nxt_conf_validation_t *vldt);
-void nxt_conf_get_string(nxt_conf_value_t *value, nxt_str_t *str);
-int64_t nxt_conf_get_integer(nxt_conf_value_t *value);
+NXT_EXPORT void nxt_conf_get_string(nxt_conf_value_t *value, nxt_str_t *str);
+NXT_EXPORT int64_t nxt_conf_get_integer(nxt_conf_value_t *value);
// FIXME reimplement and reorder functions below
nxt_uint_t nxt_conf_object_members_count(nxt_conf_value_t *value);