45 intptr_t value,
struct Buffer *err)
51 const char *str = (
const char *) value;
63#if defined(USE_HCACHE_COMPRESSION)
69 intptr_t value,
struct Buffer *err)
71#ifdef USE_HCACHE_COMPRESSION
75 const char *str = (
const char *) value;
91 intptr_t value,
struct Buffer *err)
93#ifdef USE_HCACHE_COMPRESSION
95 if (!c_header_cache_compress_method)
97 buf_printf(err,
_(
"Set option %s before setting %s"),
98 "header_cache_compress_method", cdef->
name);
105 buf_printf(err,
_(
"Invalid value for option %s: %s"),
106 "header_cache_compress_method", c_header_cache_compress_method);
114 buf_printf(err,
_(
"Option %s must be between %d and %d inclusive"),
128 {
"header_cache",
DT_PATH, 0, 0, NULL,
129 "(hcache) Directory/file for the header cache database"
132 "(hcache) Header cache backend to use"
138#if defined(USE_HCACHE_COMPRESSION)
146 "(hcache) Enable generic hcache database compression"
149 "(hcache) Level of compression for method"
156#if defined(HAVE_QDBM) || defined(HAVE_TC) || defined(HAVE_KC)
168#if defined(HAVE_GDBM) || defined(HAVE_BDB)
187#if defined(USE_HCACHE)
191#if defined(USE_HCACHE_COMPRESSION)
195#if defined(HAVE_QDBM) || defined(HAVE_TC) || defined(HAVE_KC)
199#if defined(HAVE_GDBM) || defined(HAVE_BDB)
int buf_printf(struct Buffer *buf, const char *fmt,...)
Format a string overwriting a Buffer.
const struct ComprOps * compress_get_ops(const char *compr)
Get the API functions for a compress backend.
API for the header cache compression.
const char * cs_subset_string(const struct ConfigSubset *sub, const char *name)
Get a string config item by name.
Convenience wrapper for the config headers.
bool cs_register_variables(const struct ConfigSet *cs, struct ConfigDef vars[])
Register a set of config items.
#define CSR_ERR_INVALID
Value hasn't been set.
#define CSR_SUCCESS
Action completed successfully.
Convenience wrapper for the core headers.
static 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() -.
static 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() -.
static 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() -.
bool config_init_hcache(struct ConfigSet *cs)
Register hcache config variables - Implements module_init_config_t -.
static struct ConfigDef HcacheVarsPage[]
Deprecated Config definitions for the Header Cache.
static struct ConfigDef HcacheVars[]
Config definitions for the Header Cache.
static struct ConfigDef HcacheVarsComp[]
Config definitions for the Header Cache Compression.
static struct ConfigDef HcacheVarsComp2[]
Deprecated Config definitions for the Header Cache Compression.
Convenience wrapper for the library headers.
bool store_is_valid_backend(const char *str)
Is the string a valid Store backend.
String manipulation buffer.
short max_level
Maximum compression level.
short min_level
Minimum compression level.
const char * name
User-visible name.
Container for lots of config items.
Container for Accounts, Notifications.
struct ConfigSubset * sub
Inherited config items.
#define D_INTERNAL_DEPRECATED
Config item shouldn't be used any more.
@ DT_PATH
a path to a file/directory
#define D_INTEGER_NOT_NEGATIVE
Negative numbers are not allowed.