NeoMutt  2021-02-05-666-ge300cd
Teaching an old dog new tricks
DOXYGEN
config.c File Reference

Config used by libhcache. More...

#include "config.h"
#include <stddef.h>
#include <stdbool.h>
#include <stdint.h>
#include "mutt/lib.h"
#include "config/lib.h"
#include "core/lib.h"
#include "compress/lib.h"
#include "store/lib.h"
+ Include dependency graph for config.c:

Go to the source code of this file.

Functions

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() -. More...
 
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() -. More...
 
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() -. More...
 
bool config_init_hcache (struct ConfigSet *cs)
 Register hcache config variables - Implements module_init_config_t -. More...
 

Variables

static struct ConfigDef HcacheVars []
 

Detailed Description

Config used by libhcache.

Authors
  • Richard Russon

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Definition in file config.c.

Variable Documentation

◆ HcacheVars

struct ConfigDef HcacheVars[]
static
Initial value:
= {
{ "header_cache", DT_PATH, 0, 0, NULL,
"(hcache) Directory/file for the header cache database"
},
{ "header_cache_backend", DT_STRING, 0, 0, hcache_validator,
"(hcache) Header cache backend to use"
},
{ "header_cache_compress_method", DT_STRING, 0, 0, compress_method_validator,
"(hcache) Enable generic hcache database compression"
},
{ "header_cache_compress_level", DT_NUMBER|DT_NOT_NEGATIVE, 1, 0, compress_level_validator,
"(hcache) Level of compression for method"
},
{ "header_cache_compress", DT_DEPRECATED|DT_BOOL, false, 0, NULL, NULL },
{ "header_cache_pagesize", DT_DEPRECATED|DT_LONG, 0, 0, NULL, NULL },
{ NULL },
}
#define DT_LONG
a number (long)
Definition: types.h:33
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() -...
Definition: config.c:42
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() -...
Definition: config.c:79
#define DT_NOT_NEGATIVE
Negative numbers are not allowed.
Definition: types.h:47
#define DT_STRING
a string
Definition: types.h:41
#define DT_PATH
a path to a file/directory
Definition: types.h:36
#define DT_DEPRECATED
Config item shouldn&#39;t be used any more.
Definition: types.h:77
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() -...
Definition: config.c:61
#define DT_NUMBER
a number
Definition: types.h:35
#define DT_BOOL
boolean option
Definition: types.h:30

Definition at line 112 of file config.c.