summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_var.h
diff options
context:
space:
mode:
authorZhidao HONG <z.hong@f5.com>2022-07-28 11:05:04 +0800
committerZhidao HONG <z.hong@f5.com>2022-07-28 11:05:04 +0800
commit3f8cf62c03a55b9767f0c75b3df6a1a40252b19a (patch)
tree38c5c687bb348d888c5fb869d038cc21ea47c5f2 /src/nxt_var.h
parent8761501b4845656a0f2e5c0e7bf98f948c45fb5f (diff)
downloadunit-3f8cf62c03a55b9767f0c75b3df6a1a40252b19a.tar.gz
unit-3f8cf62c03a55b9767f0c75b3df6a1a40252b19a.tar.bz2
Log: customizable access log format.
Diffstat (limited to 'src/nxt_var.h')
-rw-r--r--src/nxt_var.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/nxt_var.h b/src/nxt_var.h
index 3c38be36..cc7ff502 100644
--- a/src/nxt_var.h
+++ b/src/nxt_var.h
@@ -32,6 +32,12 @@ typedef struct {
} nxt_var_field_t;
+typedef enum {
+ NXT_VAR_STRZ = 1 << 0,
+ NXT_VAR_LOGGING = 1 << 1,
+} nxt_var_flags_t;
+
+
nxt_inline nxt_bool_t
nxt_is_var(nxt_str_t *str)
{
@@ -45,7 +51,7 @@ nxt_int_t nxt_var_index_init(void);
nxt_var_field_t *nxt_var_field_get(nxt_array_t *fields, uint16_t index);
nxt_var_t *nxt_var_compile(nxt_str_t *str, nxt_mp_t *mp, nxt_array_t *fields,
- nxt_bool_t strz);
+ nxt_var_flags_t flags);
nxt_int_t nxt_var_test(nxt_str_t *str, nxt_array_t *fields, u_char *error);
nxt_bool_t nxt_var_is_const(nxt_var_t *var);