summaryrefslogtreecommitdiff
path: root/src/mod_cml.h
diff options
context:
space:
mode:
authorArno Töll <arno@debian.org>2012-11-21 23:03:34 +0100
committerArno Töll <arno@debian.org>2012-11-21 23:03:34 +0100
commiteb45c46b906e492f063f1469486190e93ff340ff (patch)
tree85d615969fa7bf8056a05b59006f77bc63e85892 /src/mod_cml.h
parent6426b37107707a1d95ffd03f68620cbda8bdb942 (diff)
downloadlighttpd-eb45c46b906e492f063f1469486190e93ff340ff.tar.gz
Imported Upstream version 1.4.10upstream/1.4.10
Diffstat (limited to 'src/mod_cml.h')
-rw-r--r--src/mod_cml.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/src/mod_cml.h b/src/mod_cml.h
new file mode 100644
index 0000000..992af68
--- /dev/null
+++ b/src/mod_cml.h
@@ -0,0 +1,43 @@
+#ifndef _MOD_CACHE_H_
+#define _MOD_CACHE_H_
+
+#include "buffer.h"
+#include "server.h"
+#include "response.h"
+
+#include "stream.h"
+#include "plugin.h"
+
+#if defined(HAVE_MEMCACHE_H)
+#include <memcache.h>
+#endif
+
+#define plugin_data mod_cache_plugin_data
+
+typedef struct {
+ buffer *ext;
+
+ array *mc_hosts;
+ buffer *mc_namespace;
+#if defined(HAVE_MEMCACHE_H)
+ struct memcache *mc;
+#endif
+ buffer *power_magnet;
+} plugin_config;
+
+typedef struct {
+ PLUGIN_DATA;
+
+ buffer *basedir;
+ buffer *baseurl;
+
+ buffer *trigger_handler;
+
+ plugin_config **config_storage;
+
+ plugin_config conf;
+} plugin_data;
+
+int cache_parse_lua(server *srv, connection *con, plugin_data *p, buffer *fn);
+
+#endif