- next is 1.4.56
[lighttpd.git] / src / mod_cml.h
blobd1d0c52a8c39a70f171f7dea0cd3a9e9bc89e88f
1 #ifndef _MOD_CACHE_H_
2 #define _MOD_CACHE_H_
3 #include "first.h"
5 #include "base_decls.h"
6 #include "buffer.h"
8 #include "plugin.h"
10 #if defined(USE_MEMCACHED)
11 #include <libmemcached/memcached.h>
12 #endif
14 #define plugin_data mod_cache_plugin_data
16 typedef struct {
17 buffer *ext;
19 array *mc_hosts;
20 buffer *mc_namespace;
21 #if defined(USE_MEMCACHED)
22 memcached_st *memc;
23 #endif
24 buffer *power_magnet;
25 } plugin_config;
27 typedef struct {
28 PLUGIN_DATA;
30 buffer *basedir;
31 buffer *baseurl;
33 buffer *trigger_handler;
35 plugin_config **config_storage;
37 plugin_config conf;
38 } plugin_data;
40 int cache_parse_lua(server *srv, connection *con, plugin_data *p, buffer *fn);
42 #endif