summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_conf.h
diff options
context:
space:
mode:
authorValentin Bartenev <vbart@nginx.com>2017-05-30 17:12:20 +0300
committerValentin Bartenev <vbart@nginx.com>2017-05-30 17:12:20 +0300
commitc0bf729c8e7a79d9d7929cb715e3f7237218fcd9 (patch)
tree4c77611846553c3155f723cb97c94e639aa8cc8f /src/nxt_conf.h
parentf5c3b1c637b4c7c98a9efbc1b99f825dbbe37a51 (diff)
downloadunit-c0bf729c8e7a79d9d7929cb715e3f7237218fcd9.tar.gz
unit-c0bf729c8e7a79d9d7929cb715e3f7237218fcd9.tar.bz2
Controller: support for partial PUT and DELETE operations.
Diffstat (limited to 'src/nxt_conf.h')
-rw-r--r--src/nxt_conf.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/nxt_conf.h b/src/nxt_conf.h
index d0ecfc5f..214f52d9 100644
--- a/src/nxt_conf.h
+++ b/src/nxt_conf.h
@@ -10,6 +10,7 @@
typedef struct nxt_conf_json_value_s nxt_conf_json_value_t;
+typedef struct nxt_conf_json_op_s nxt_conf_json_op_t;
typedef struct {
@@ -21,9 +22,17 @@ typedef struct {
nxt_conf_json_value_t *nxt_conf_json_get_value(nxt_conf_json_value_t *value,
nxt_str_t *path);
nxt_conf_json_value_t *nxt_conf_json_object_get_member(
- nxt_conf_json_value_t *value, u_char *name, size_t length);
+ nxt_conf_json_value_t *value, nxt_str_t *name, uint32_t *index);
+
+nxt_int_t nxt_conf_json_op_compile(nxt_conf_json_value_t *object,
+ nxt_conf_json_value_t *value, nxt_conf_json_op_t **ops, nxt_str_t *path,
+ nxt_mem_pool_t *pool);
+nxt_conf_json_value_t *nxt_conf_json_clone_value(nxt_conf_json_value_t *value,
+ nxt_conf_json_op_t *op, nxt_mem_pool_t *pool);
+
nxt_conf_json_value_t *nxt_conf_json_parse(u_char *pos, size_t length,
nxt_mem_pool_t *pool);
+
uintptr_t nxt_conf_json_print_value(u_char *pos, nxt_conf_json_value_t *value,
nxt_conf_json_pretty_t *pretty);