summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_conf.h
diff options
context:
space:
mode:
authorValentin Bartenev <vbart@nginx.com>2017-05-15 22:39:53 +0300
committerValentin Bartenev <vbart@nginx.com>2017-05-15 22:39:53 +0300
commit0ca2c2fce2c21a397fc10d19bca6628df7bc62ab (patch)
tree8c30ef891363b35867cf2e3cc6cdc16d4ba039e3 /src/nxt_conf.h
parent952ec2e0ffa37a139844d4883c254e375e7618e2 (diff)
downloadunit-0ca2c2fce2c21a397fc10d19bca6628df7bc62ab.tar.gz
unit-0ca2c2fce2c21a397fc10d19bca6628df7bc62ab.tar.bz2
Controller: trivial abilities to save and request configuration.
Now you can get current configuration with: $ curl 127.0.0.1:8443 and put new configuration with: $ curl -X PUT -d @conf.json 127.0.0.1:8443
Diffstat (limited to 'src/nxt_conf.h')
-rw-r--r--src/nxt_conf.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nxt_conf.h b/src/nxt_conf.h
index 1d08199c..5dd16177 100644
--- a/src/nxt_conf.h
+++ b/src/nxt_conf.h
@@ -12,7 +12,7 @@
typedef struct nxt_conf_json_value_s nxt_conf_json_value_t;
-nxt_conf_json_value_t *nxt_conf_json_parse(nxt_buf_mem_t *b,
+nxt_conf_json_value_t *nxt_conf_json_parse(u_char *pos, size_t length,
nxt_mem_pool_t *pool);
nxt_buf_t *nxt_conf_json_print(nxt_conf_json_value_t *value,
nxt_mem_pool_t *pool);