50 if (!c_header_cache_backend)
52 buf_printf(err,
_(
"Set option %s before setting %s"),
"header_cache_backend", cdef->
name);
63 intptr_t value,
struct Buffer *err)
68 const char *str = (
const char *) value;
92#if defined(USE_HCACHE_COMPRESSION)
97 intptr_t value,
struct Buffer *err)
99#ifdef USE_HCACHE_COMPRESSION
103 const char *str = (
const char *) value;
134 intptr_t value,
struct Buffer *err)
136#ifdef USE_HCACHE_COMPRESSION
138 if (!c_header_cache_compress_method)
140 buf_printf(err,
_(
"Set option %s before setting %s"),
141 "header_cache_compress_method", cdef->
name);
148 buf_printf(err,
_(
"Invalid value for option %s: %s"),
149 "header_cache_compress_method", c_header_cache_compress_method);
157 buf_printf(err,
_(
"Option %s must be between %d and %d inclusive"),
172 "(hcache) Directory/file for the header cache database"
175 "(hcache) Header cache backend to use"
181#if defined(USE_HCACHE_COMPRESSION)
189 "(hcache) Enable generic hcache database compression"
192 "(hcache) Level of compression for method"
int buf_printf(struct Buffer *buf, const char *fmt,...)
Format a string overwriting a Buffer.
int buf_add_printf(struct Buffer *buf, const char *fmt,...)
Format a string appending a Buffer.
size_t buf_addch(struct Buffer *buf, char c)
Add a single character to a Buffer.
size_t buf_addstr(struct Buffer *buf, const char *s)
Add a string to a Buffer.
static const char * buf_string(const struct Buffer *buf)
Convert a buffer to a const char * "string".
const struct ComprOps * compress_get_ops(const char *compr)
Get the API functions for a compress backend.
struct Slist * compress_list(void)
Get a list of compression backend names.
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_INV_WARNING
Report as a warning, not an error.
#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" 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() -.
static int hcache_backend_validator(const struct ConfigDef *cdef, intptr_t value, struct Buffer *err)
Validate the "header_cache_backend" config variable - Implements ConfigDef::validator() -.
struct ConfigDef HcacheVars[]
Config definitions for the Header Cache.
struct ConfigDef HcacheVarsComp[]
Config definitions for the Header Cache Compression.
Convenience wrapper for the library headers.
void slist_free(struct Slist **ptr)
Free an Slist object.
struct Buffer * buf_pool_get(void)
Get a Buffer from the pool.
void buf_pool_release(struct Buffer **ptr)
Return a Buffer to the pool.
#define STAILQ_FOREACH(var, head, field)
bool store_is_valid_backend(const char *str)
Is the string a valid Store backend.
struct Slist * store_backend_list(void)
Get a list of backend names.
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.
struct ListHead head
List containing values.
@ DT_PATH
a path to a file/directory
#define D_INTEGER_NOT_NEGATIVE
Negative numbers are not allowed.