summaryrefslogtreecommitdiff
path: root/array-var-nginx-module-0.06/src/ngx_http_array_var_util.h
diff options
context:
space:
mode:
authorkaiwu <kaiwu2004@gmail.com>2025-03-01 12:42:23 +0800
committerkaiwu <kaiwu2004@gmail.com>2025-03-01 12:42:23 +0800
commit3f33461e4948bf05e60bdff35ec6c57a649c7860 (patch)
tree284c2ba95a41536ae1bff6bea710db0709a64739 /array-var-nginx-module-0.06/src/ngx_http_array_var_util.h
downloadopenresty-3f33461e4948bf05e60bdff35ec6c57a649c7860.tar.gz
openresty-3f33461e4948bf05e60bdff35ec6c57a649c7860.zip
openresty bundle
Diffstat (limited to 'array-var-nginx-module-0.06/src/ngx_http_array_var_util.h')
-rw-r--r--array-var-nginx-module-0.06/src/ngx_http_array_var_util.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/array-var-nginx-module-0.06/src/ngx_http_array_var_util.h b/array-var-nginx-module-0.06/src/ngx_http_array_var_util.h
new file mode 100644
index 0000000..b69a4e2
--- /dev/null
+++ b/array-var-nginx-module-0.06/src/ngx_http_array_var_util.h
@@ -0,0 +1,27 @@
+#ifndef NGX_HTTP_ARRAY_VAR_UTIL_H
+#define NGX_HTTP_ARRAY_VAR_UTIL_H
+
+
+#include <ndk.h>
+#include <ngx_core.h>
+#include <ngx_http.h>
+
+
+ngx_int_t ngx_http_array_var_add_variable(ngx_conf_t *cf, ngx_str_t *name);
+
+u_char *ngx_http_array_var_strlstrn(u_char *s1, u_char *last, u_char *s2,
+ size_t n);
+
+ndk_set_var_value_pt ngx_http_array_var_get_func_from_cmd(u_char *name,
+ size_t name_len);
+
+
+#ifndef ngx_str3cmp
+
+# define ngx_str3cmp(m, c0, c1, c2) \
+ m[0] == c0 && m[1] == c1 && m[2] == c2
+
+#endif /* ngx_str3cmp */
+
+#endif /* NGX_HTTP_ARRAY_VAR_UTIL_H */
+