42 #ifdef USE_HCACHE_COMPRESSION 49 #if defined(HAVE_GDBM) || defined(HAVE_BDB) 57 intptr_t value,
struct Buffer *err)
62 const char *str = (
const char *) value;
71 #ifdef USE_HCACHE_COMPRESSION 76 intptr_t value,
struct Buffer *err)
81 const char *str = (
const char *) value;
94 intptr_t value,
struct Buffer *err)
99 "header_cache_compress_method", cdef->
name);
127 "(hcache) Directory/file for the header cache database" 130 "(hcache) Header cache backend to use" 132 #if defined(USE_HCACHE_COMPRESSION) 134 "(hcache) Level of compression for method" 137 "(hcache) Enable generic hcache database compression" 140 #if defined(HAVE_QDBM) || defined(HAVE_TC) || defined(HAVE_KC) 143 #if defined(HAVE_GDBM) || defined(HAVE_BDB) 146 { NULL, 0, NULL, 0, 0, NULL, NULL },
#define CSR_SUCCESS
Action completed successfully.
char * C_HeaderCacheCompressMethod
Config: (hcache) Enable generic hcache database compression.
Container for lots of config items.
#define CSR_ERR_INVALID
Value hasn't been set.
#define DT_LONG
a number (long)
int compress_level_validator(const struct ConfigSet *cs, const struct ConfigDef *cdef, intptr_t value, struct Buffer *err)
Validate the "header_cache_compress_level" config variable - Implements ConfigDef::validator() ...
const struct ComprOps * compress_get_ops(const char *compr)
Get the API functions for a compress backend.
char * C_HeaderCache
Config: (hcache) Directory/file for the header cache database.
int compress_method_validator(const struct ConfigSet *cs, const struct ConfigDef *cdef, intptr_t value, struct Buffer *err)
Validate the "header_cache_compress_method" config variable - Implements ConfigDef::validator() ...
long C_HeaderCachePagesize
bool C_HeaderCacheCompress
String manipulation buffer.
short max_level
Maximum compression level.
#define DT_NOT_NEGATIVE
Negative numbers are not allowed.
int mutt_buffer_printf(struct Buffer *buf, const char *fmt,...)
Format a string overwriting a Buffer.
Convenience wrapper for the config headers.
API for the header cache compression.
bool config_init_hcache(struct ConfigSet *cs)
Register hcache config variables - Implements module_init_config_t.
short C_HeaderCacheCompressLevel
Config: (hcache) Level of compression for method.
bool cs_register_variables(const struct ConfigSet *cs, struct ConfigDef vars[], uint32_t flags)
Register a set of config items.
const char * name
User-visible name.
#define DT_STRING
a string
#define DT_PATH
a path to a file/directory
#define DT_DEPRECATED
Config item shouldn't be used any more.
int hcache_validator(const struct ConfigSet *cs, const struct ConfigDef *cdef, intptr_t value, struct Buffer *err)
Validate the "header_cache_backend" config variable - Implements ConfigDef::validator() ...
Header Cache Compression API.
char * C_HeaderCacheBackend
Config: (hcache) Header cache backend to use.
bool store_is_valid_backend(const char *str)
Is the string a valid Store backend.
short min_level
Minimum compression level.
Convenience wrapper for the library headers.
#define DT_NUMBER
a number
#define DT_BOOL
boolean option