summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_var.h
diff options
context:
space:
mode:
authorZhidao HONG <z.hong@f5.com>2024-01-31 14:32:08 +0800
committerZhidao HONG <z.hong@f5.com>2024-02-20 06:09:23 +0800
commit465540157fe116db4082f52af4f3f67de33ed7c8 (patch)
treed1c1062a912abc116a67aec8da5ad0115fc9db45 /src/nxt_var.h
parent63507c499e2ff3fa4af416c4d69dbaba2ac1c774 (diff)
downloadunit-465540157fe116db4082f52af4f3f67de33ed7c8.tar.gz
unit-465540157fe116db4082f52af4f3f67de33ed7c8.tar.bz2
Var: Introduced nxt_var_get()
This commit is for subsequent commits that will support njs variable accessing. In this commit, nxt_var_get() is introduced to extend the variable handling capabilities. Concurrently, nxt_var_ref_get() has been refactored to use in both configuration and request phases.
Diffstat (limited to 'src/nxt_var.h')
-rw-r--r--src/nxt_var.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nxt_var.h b/src/nxt_var.h
index d04ba48a..08a92c08 100644
--- a/src/nxt_var.h
+++ b/src/nxt_var.h
@@ -59,8 +59,8 @@ nxt_int_t nxt_var_test(nxt_tstr_state_t *state, nxt_str_t *str, u_char *error);
nxt_int_t nxt_var_interpreter(nxt_task_t *task, nxt_tstr_state_t *state,
nxt_var_cache_t *cache, nxt_var_t *var, nxt_str_t *str, void *ctx,
nxt_bool_t logging);
-nxt_str_t *nxt_var_get(nxt_task_t *task, nxt_var_cache_t *cache,
- nxt_str_t *name, void *ctx);
+nxt_str_t *nxt_var_get(nxt_task_t *task, nxt_tstr_state_t *state,
+ nxt_var_cache_t *cache, nxt_str_t *name, void *ctx);
nxt_int_t nxt_http_unknown_var_ref(nxt_mp_t *mp, nxt_var_ref_t *ref,
nxt_str_t *name);