Annotation of embedaddon/lighttpd/src/mod_cml.h, revision 1.1.1.2

1.1       misho       1: #ifndef _MOD_CACHE_H_
                      2: #define _MOD_CACHE_H_
1.1.1.2 ! misho       3: #include "first.h"
1.1       misho       4: 
                      5: #include "buffer.h"
                      6: #include "server.h"
                      7: #include "response.h"
                      8: 
                      9: #include "stream.h"
                     10: #include "plugin.h"
                     11: 
1.1.1.2 ! misho      12: #if defined(USE_MEMCACHED)
        !            13: #include <libmemcached/memcached.h>
1.1       misho      14: #endif
                     15: 
                     16: #define plugin_data mod_cache_plugin_data
                     17: 
                     18: typedef struct {
                     19:        buffer *ext;
                     20: 
                     21:        array  *mc_hosts;
                     22:        buffer *mc_namespace;
1.1.1.2 ! misho      23: #if defined(USE_MEMCACHED)
        !            24:        memcached_st *memc;
1.1       misho      25: #endif
                     26:        buffer *power_magnet;
                     27: } plugin_config;
                     28: 
                     29: typedef struct {
                     30:        PLUGIN_DATA;
                     31: 
                     32:        buffer *basedir;
                     33:        buffer *baseurl;
                     34: 
                     35:        buffer *trigger_handler;
                     36: 
                     37:        plugin_config **config_storage;
                     38: 
                     39:        plugin_config conf;
                     40: } plugin_data;
                     41: 
                     42: int cache_parse_lua(server *srv, connection *con, plugin_data *p, buffer *fn);
                     43: 
                     44: #endif

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>