49 const char *str = (
const char *) value;
61#if defined(USE_HCACHE_COMPRESSION)
66 intptr_t value,
struct Buffer *err)
68#ifdef USE_HCACHE_COMPRESSION
72 const char *str = (
const char *) value;
88 intptr_t value,
struct Buffer *err)
90#ifdef USE_HCACHE_COMPRESSION
92 if (!c_header_cache_compress_method)
94 buf_printf(err,
_(
"Set option %s before setting %s"),
95 "header_cache_compress_method", cdef->
name);
102 buf_printf(err,
_(
"Invalid value for option %s: %s"),
103 "header_cache_compress_method", c_header_cache_compress_method);
111 buf_printf(err,
_(
"Option %s must be between %d and %d inclusive"),
125 {
"header_cache",
DT_PATH, 0, 0, NULL,
126 "(hcache) Directory/file for the header cache database"
129 "(hcache) Header cache backend to use"
135#if defined(USE_HCACHE_COMPRESSION)
143 "(hcache) Enable generic hcache database compression"
146 "(hcache) Level of compression for method"
153#if defined(HAVE_QDBM) || defined(HAVE_TC) || defined(HAVE_KC)
165#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.
#define CSR_ERR_INVALID
Value hasn't been set.
#define CSR_SUCCESS
Action completed successfully.
Convenience wrapper for the core headers.
static int hcache_validator(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 ConfigDef *cdef, intptr_t value, struct Buffer *err)
Validate the "header_cache_compress_method" config variable - Implements ConfigDef::validator() -.
static int compress_level_validator(const struct ConfigDef *cdef, intptr_t value, struct Buffer *err)
Validate the "header_cache_compress_level" config variable - Implements ConfigDef::validator() -.
struct ConfigDef HcacheVarsPage[]
Deprecated Config definitions for the Header Cache.
struct ConfigDef HcacheVars[]
Config definitions for the Header Cache.
struct ConfigDef HcacheVarsComp[]
Config definitions for the Header Cache Compression.
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 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.