NeoMutt  2020-08-07-1-gab41a1
Teaching an old dog new tricks
DOXYGEN
config.c File Reference

Config used by libhcache. More...

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

Go to the source code of this file.

Functions

bool config_init_hcache (struct ConfigSet *cs)
 Register hcache config variables. More...
 

Variables

char * C_HeaderCache
 Config: (hcache) Directory/file for the header cache database. More...
 
char * C_HeaderCacheBackend
 Config: (hcache) Header cache backend to use. More...
 
short C_HeaderCacheCompressLevel
 Config: (hcache) Level of compression for method. More...
 
char * C_HeaderCacheCompressMethod
 Config: (hcache) Enable generic hcache database compression. More...
 
bool C_MaildirHeaderCacheVerify
 Config: (hcache) Check for maildir changes when opening mailbox. More...
 
bool C_HeaderCacheCompress = false
 
long C_HeaderCachePagesize = 0
 
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.

Function Documentation

◆ config_init_hcache()

bool config_init_hcache ( struct ConfigSet cs)

Register hcache config variables.

Definition at line 83 of file config.c.

84 {
85  return cs_register_variables(cs, HcacheVars, 0);
86 }
struct ConfigDef HcacheVars[]
Definition: config.c:51
bool cs_register_variables(const struct ConfigSet *cs, struct ConfigDef vars[], int flags)
Register a set of config items.
Definition: set.c:287
+ Here is the call graph for this function:

Variable Documentation

◆ C_HeaderCache

char* C_HeaderCache

Config: (hcache) Directory/file for the header cache database.

Definition at line 37 of file config.c.

◆ C_HeaderCacheBackend

char* C_HeaderCacheBackend

Config: (hcache) Header cache backend to use.

Definition at line 38 of file config.c.

◆ C_HeaderCacheCompressLevel

short C_HeaderCacheCompressLevel

Config: (hcache) Level of compression for method.

Definition at line 40 of file config.c.

◆ C_HeaderCacheCompressMethod

char* C_HeaderCacheCompressMethod

Config: (hcache) Enable generic hcache database compression.

Definition at line 41 of file config.c.

◆ C_MaildirHeaderCacheVerify

bool C_MaildirHeaderCacheVerify

Config: (hcache) Check for maildir changes when opening mailbox.

Definition at line 43 of file config.c.

◆ C_HeaderCacheCompress

bool C_HeaderCacheCompress = false

Definition at line 46 of file config.c.

◆ C_HeaderCachePagesize

long C_HeaderCachePagesize = 0

Definition at line 48 of file config.c.

◆ HcacheVars

struct ConfigDef HcacheVars[]
Initial value:
= {
{ "header_cache", DT_PATH, &C_HeaderCache, 0, 0, NULL,
"(hcache) Directory/file for the header cache database"
},
{ "header_cache_backend", DT_STRING, &C_HeaderCacheBackend, 0, 0, hcache_validator,
"(hcache) Header cache backend to use"
},
"(hcache) Level of compression for method"
},
{ "header_cache_compress_method", DT_STRING, &C_HeaderCacheCompressMethod, 0, 0, compress_method_validator,
"(hcache) Enable generic hcache database compression"
},
{ "maildir_header_cache_verify", DT_BOOL, &C_MaildirHeaderCacheVerify, true, 0, NULL,
"(hcache) Check for maildir changes when opening mailbox"
},
{ "header_cache_compress", DT_DEPRECATED|DT_BOOL, &C_HeaderCacheCompress, false, 0, NULL, NULL },
{ "header_cache_pagesize", DT_DEPRECATED|DT_LONG, &C_HeaderCachePagesize, 0, 0, NULL, NULL },
{ NULL, 0, NULL, 0, 0, NULL, NULL },
}
char * C_HeaderCacheCompressMethod
Config: (hcache) Enable generic hcache database compression.
Definition: config.c:41
#define DT_LONG
a number (long)
Definition: types.h:33
char * C_HeaderCache
Config: (hcache) Directory/file for the header cache database.
Definition: config.c:37
long C_HeaderCachePagesize
Definition: config.c:48
bool C_HeaderCacheCompress
Definition: config.c:46
bool C_MaildirHeaderCacheVerify
Config: (hcache) Check for maildir changes when opening mailbox.
Definition: config.c:43
#define DT_NOT_NEGATIVE
Negative numbers are not allowed.
Definition: types.h:47
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: init.c:1618
short C_HeaderCacheCompressLevel
Config: (hcache) Level of compression for method.
Definition: config.c:40
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: init.c:1582
#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:79
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: init.c:1601
char * C_HeaderCacheBackend
Config: (hcache) Header cache backend to use.
Definition: config.c:38
#define DT_NUMBER
a number
Definition: types.h:35
#define DT_BOOL
boolean option
Definition: types.h:30

Definition at line 51 of file config.c.