summaryrefslogtreecommitdiff
path: root/array-var-nginx-module-0.06/src/ngx_http_array_var_util.h
diff options
context:
space:
mode:
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 */
+