[mod_cgi] fix pipe_cloexec() when no O_CLOEXEC
[lighttpd.git] / src / mod_cml.h
blobe4adaed57ab3ca96a768a0a282b64ca558224398
1 #ifndef _MOD_CACHE_H_
2 #define _MOD_CACHE_H_
3 #include "first.h"
5 #include "buffer.h"
6 #include "server.h"
7 #include "response.h"
9 #include "stream.h"
10 #include "plugin.h"
12 #if defined(USE_MEMCACHED)
13 #include <libmemcached/memcached.h>
14 #endif
16 #define plugin_data mod_cache_plugin_data
18 typedef struct {
19 buffer *ext;
21 array *mc_hosts;
22 buffer *mc_namespace;
23 #if defined(USE_MEMCACHED)
24 memcached_st *memc;
25 #endif
26 buffer *power_magnet;
27 } plugin_config;
29 typedef struct {
30 PLUGIN_DATA;
32 buffer *basedir;
33 buffer *baseurl;
35 buffer *trigger_handler;
37 plugin_config **config_storage;
39 plugin_config conf;
40 } plugin_data;
42 int cache_parse_lua(server *srv, connection *con, plugin_data *p, buffer *fn);
44 #endif