summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_var.h
diff options
context:
space:
mode:
authorZhidao HONG <z.hong@f5.com>2021-09-07 21:13:44 +0800
committerZhidao HONG <z.hong@f5.com>2021-09-07 21:13:44 +0800
commita336928e1027af92d0c9bb2ccb369a3f9b53abae (patch)
tree24062e6f2e2fafbc665851797f5ec9b64c68b150 /src/nxt_var.h
parent9c1894bf7791d44c6ebd9a5637ccde10bc5da29c (diff)
downloadunit-a336928e1027af92d0c9bb2ccb369a3f9b53abae.tar.gz
unit-a336928e1027af92d0c9bb2ccb369a3f9b53abae.tar.bz2
Router: refactored variable pass.
Since the "pass" option supports both strings and variables, a generic nxt_var_t structure can be used in the configuration phase, and the "name" field in actions is redundant. No functional changes.
Diffstat (limited to 'src/nxt_var.h')
-rw-r--r--src/nxt_var.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nxt_var.h b/src/nxt_var.h
index 7e0a2a21..6825c262 100644
--- a/src/nxt_var.h
+++ b/src/nxt_var.h
@@ -30,6 +30,9 @@ nxt_is_var(nxt_str_t *str)
}
+void nxt_var_raw(nxt_var_t *var, nxt_str_t *str);
+nxt_bool_t nxt_var_is_const(nxt_var_t *var);
+
nxt_int_t nxt_var_register(nxt_var_decl_t *decl, size_t n);
nxt_int_t nxt_var_index_init(void);
nxt_var_t *nxt_var_compile(nxt_str_t *str, nxt_mp_t *mp);