summaryrefslogtreecommitdiff
path: root/data/lighttpd/lighttpd-1.4.53/src/keyvalue.h
diff options
context:
space:
mode:
authorMCApollo <34170230+MCApollo@users.noreply.github.com>2019-04-29 17:53:00 +0000
committerMCApollo <34170230+MCApollo@users.noreply.github.com>2019-04-29 17:53:00 +0000
commit59f5fd20e2f59ae186d5a461aef7782dd55e4e7b (patch)
tree10475faf0b6dcb812b64da679f4ae8ff01c45874 /data/lighttpd/lighttpd-1.4.53/src/keyvalue.h
parentf06e297cd175cca39745f6d1970225ae88aa68f1 (diff)
Updated lighttpd.
Diffstat (limited to 'data/lighttpd/lighttpd-1.4.53/src/keyvalue.h')
-rw-r--r--data/lighttpd/lighttpd-1.4.53/src/keyvalue.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/data/lighttpd/lighttpd-1.4.53/src/keyvalue.h b/data/lighttpd/lighttpd-1.4.53/src/keyvalue.h
new file mode 100644
index 000000000..0a7854845
--- /dev/null
+++ b/data/lighttpd/lighttpd-1.4.53/src/keyvalue.h
@@ -0,0 +1,31 @@
+#ifndef _KEY_VALUE_H_
+#define _KEY_VALUE_H_
+#include "first.h"
+
+#include "base_decls.h"
+#include "buffer.h"
+
+struct burl_parts_t; /* declaration */
+struct cond_cache_t; /* declaration */
+struct pcre_keyvalue; /* declaration */
+
+typedef struct pcre_keyvalue_ctx {
+ struct cond_cache_t *cache;
+ struct burl_parts_t *burl;
+ int m;
+} pcre_keyvalue_ctx;
+
+typedef struct {
+ struct pcre_keyvalue **kv;
+ size_t used;
+ size_t size;
+} pcre_keyvalue_buffer;
+
+pcre_keyvalue_buffer *pcre_keyvalue_buffer_init(void);
+int pcre_keyvalue_buffer_append(struct server *srv, pcre_keyvalue_buffer *kvb, buffer *key, buffer *value);
+void pcre_keyvalue_buffer_free(pcre_keyvalue_buffer *kvb);
+handler_t pcre_keyvalue_buffer_process(pcre_keyvalue_buffer *kvb, pcre_keyvalue_ctx *ctx, buffer *input, buffer *result);
+void pcre_keyvalue_burl_normalize_key(buffer *k, buffer *t);
+void pcre_keyvalue_burl_normalize_value(buffer *v, buffer *t);
+
+#endif