nxt_conf_validation.c (1991:61155eb41a96) nxt_conf_validation.c (2078:0996dd223cdd)
1
2/*
3 * Copyright (C) Valentin V. Bartenev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#include <nxt_main.h>
8#include <nxt_conf.h>

--- 100 unchanged lines hidden (view full) ---

109#endif
110static nxt_int_t nxt_conf_vldt_action(nxt_conf_validation_t *vldt,
111 nxt_conf_value_t *value, void *data);
112static nxt_int_t nxt_conf_vldt_pass(nxt_conf_validation_t *vldt,
113 nxt_conf_value_t *value, void *data);
114static nxt_int_t nxt_conf_vldt_return(nxt_conf_validation_t *vldt,
115 nxt_conf_value_t *value, void *data);
116static nxt_int_t nxt_conf_vldt_share(nxt_conf_validation_t *vldt,
1
2/*
3 * Copyright (C) Valentin V. Bartenev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#include <nxt_main.h>
8#include <nxt_conf.h>

--- 100 unchanged lines hidden (view full) ---

109#endif
110static nxt_int_t nxt_conf_vldt_action(nxt_conf_validation_t *vldt,
111 nxt_conf_value_t *value, void *data);
112static nxt_int_t nxt_conf_vldt_pass(nxt_conf_validation_t *vldt,
113 nxt_conf_value_t *value, void *data);
114static nxt_int_t nxt_conf_vldt_return(nxt_conf_validation_t *vldt,
115 nxt_conf_value_t *value, void *data);
116static nxt_int_t nxt_conf_vldt_share(nxt_conf_validation_t *vldt,
117 nxt_conf_value_t *value, void *data);
117 nxt_conf_value_t *value, void *data);
118static nxt_int_t nxt_conf_vldt_share_element(nxt_conf_validation_t *vldt,
119 nxt_conf_value_t *value);
120static nxt_int_t nxt_conf_vldt_proxy(nxt_conf_validation_t *vldt,
121 nxt_conf_value_t *value, void *data);
122static nxt_int_t nxt_conf_vldt_python(nxt_conf_validation_t *vldt,
123 nxt_conf_value_t *value, void *data);
124static nxt_int_t nxt_conf_vldt_python_path(nxt_conf_validation_t *vldt,
125 nxt_conf_value_t *value, void *data);

--- 63 unchanged lines hidden (view full) ---

189 nxt_conf_value_t *value, void *data);
190static nxt_int_t nxt_conf_vldt_php_option(nxt_conf_validation_t *vldt,
191 nxt_str_t *name, nxt_conf_value_t *value);
192static nxt_int_t nxt_conf_vldt_java_classpath(nxt_conf_validation_t *vldt,
193 nxt_conf_value_t *value);
194static nxt_int_t nxt_conf_vldt_java_option(nxt_conf_validation_t *vldt,
195 nxt_conf_value_t *value);
196static nxt_int_t nxt_conf_vldt_upstream(nxt_conf_validation_t *vldt,
118static nxt_int_t nxt_conf_vldt_share_element(nxt_conf_validation_t *vldt,
119 nxt_conf_value_t *value);
120static nxt_int_t nxt_conf_vldt_proxy(nxt_conf_validation_t *vldt,
121 nxt_conf_value_t *value, void *data);
122static nxt_int_t nxt_conf_vldt_python(nxt_conf_validation_t *vldt,
123 nxt_conf_value_t *value, void *data);
124static nxt_int_t nxt_conf_vldt_python_path(nxt_conf_validation_t *vldt,
125 nxt_conf_value_t *value, void *data);

--- 63 unchanged lines hidden (view full) ---

189 nxt_conf_value_t *value, void *data);
190static nxt_int_t nxt_conf_vldt_php_option(nxt_conf_validation_t *vldt,
191 nxt_str_t *name, nxt_conf_value_t *value);
192static nxt_int_t nxt_conf_vldt_java_classpath(nxt_conf_validation_t *vldt,
193 nxt_conf_value_t *value);
194static nxt_int_t nxt_conf_vldt_java_option(nxt_conf_validation_t *vldt,
195 nxt_conf_value_t *value);
196static nxt_int_t nxt_conf_vldt_upstream(nxt_conf_validation_t *vldt,
197 nxt_str_t *name, nxt_conf_value_t *value);
197 nxt_str_t *name, nxt_conf_value_t *value);
198static nxt_int_t nxt_conf_vldt_server(nxt_conf_validation_t *vldt,
199 nxt_str_t *name, nxt_conf_value_t *value);
200static nxt_int_t nxt_conf_vldt_server_weight(nxt_conf_validation_t *vldt,
201 nxt_conf_value_t *value, void *data);
202
203static nxt_int_t nxt_conf_vldt_isolation(nxt_conf_validation_t *vldt,
204 nxt_conf_value_t *value, void *data);
205static nxt_int_t nxt_conf_vldt_clone_namespaces(nxt_conf_validation_t *vldt,

--- 2237 unchanged lines hidden (view full) ---

2443 if (nxt_is_var(&var)) {
2444 ret = nxt_conf_vldt_var(vldt, &name, &var);
2445 if (ret != NXT_OK) {
2446 return ret;
2447 }
2448
2449 break;
2450 }
198static nxt_int_t nxt_conf_vldt_server(nxt_conf_validation_t *vldt,
199 nxt_str_t *name, nxt_conf_value_t *value);
200static nxt_int_t nxt_conf_vldt_server_weight(nxt_conf_validation_t *vldt,
201 nxt_conf_value_t *value, void *data);
202
203static nxt_int_t nxt_conf_vldt_isolation(nxt_conf_validation_t *vldt,
204 nxt_conf_value_t *value, void *data);
205static nxt_int_t nxt_conf_vldt_clone_namespaces(nxt_conf_validation_t *vldt,

--- 2237 unchanged lines hidden (view full) ---

2443 if (nxt_is_var(&var)) {
2444 ret = nxt_conf_vldt_var(vldt, &name, &var);
2445 if (ret != NXT_OK) {
2446 return ret;
2447 }
2448
2449 break;
2450 }
2451 }
2451 }
2452
2453 ret = nxt_conf_vldt_type(vldt, &name, member, vals->type);
2454 if (ret != NXT_OK) {
2455 return ret;
2456 }
2457
2458 if (vals->validator != NULL) {
2459 ret = vals->validator(vldt, member, vals->u.members);

--- 568 unchanged lines hidden ---
2452
2453 ret = nxt_conf_vldt_type(vldt, &name, member, vals->type);
2454 if (ret != NXT_OK) {
2455 return ret;
2456 }
2457
2458 if (vals->validator != NULL) {
2459 ret = vals->validator(vldt, member, vals->u.members);

--- 568 unchanged lines hidden ---