NeoMutt  2025-01-09-117-gace867
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
helpers.h
Go to the documentation of this file.
1
23#ifndef MUTT_CONFIG_HELPERS_H
24#define MUTT_CONFIG_HELPERS_H
25
26#include <stdbool.h>
27#include "quad.h"
28
29struct ConfigSet;
30struct ConfigSubset;
31struct HashElem;
32
33bool cs_subset_bool (const struct ConfigSubset *sub, const char *name);
34unsigned char cs_subset_enum (const struct ConfigSubset *sub, const char *name);
35long cs_subset_long (const struct ConfigSubset *sub, const char *name);
36struct MbTable *cs_subset_mbtable(const struct ConfigSubset *sub, const char *name);
37short cs_subset_number (const struct ConfigSubset *sub, const char *name);
38const char * cs_subset_path (const struct ConfigSubset *sub, const char *name);
39enum QuadOption cs_subset_quad (const struct ConfigSubset *sub, const char *name);
40const struct Regex * cs_subset_regex (const struct ConfigSubset *sub, const char *name);
41const struct Slist * cs_subset_slist (const struct ConfigSubset *sub, const char *name);
42short cs_subset_sort (const struct ConfigSubset *sub, const char *name);
43const char * cs_subset_string (const struct ConfigSubset *sub, const char *name);
44const struct Expando *cs_subset_expando(const struct ConfigSubset *sub, const char *name);
45
46bool config_he_set_initial (struct ConfigSet *cs, struct HashElem *he, const char *value);
47bool config_str_set_initial(struct ConfigSet *cs, const char *name, const char *value);
48
49#endif /* MUTT_CONFIG_HELPERS_H */
const struct Regex * cs_subset_regex(const struct ConfigSubset *sub, const char *name)
Get a regex config item by name.
Definition: helpers.c:217
const char * cs_subset_string(const struct ConfigSubset *sub, const char *name)
Get a string config item by name.
Definition: helpers.c:291
const struct Slist * cs_subset_slist(const struct ConfigSubset *sub, const char *name)
Get a string-list config item by name.
Definition: helpers.c:242
enum QuadOption cs_subset_quad(const struct ConfigSubset *sub, const char *name)
Get a quad-value config item by name.
Definition: helpers.c:192
unsigned char cs_subset_enum(const struct ConfigSubset *sub, const char *name)
Get a enumeration config item by name.
Definition: helpers.c:71
short cs_subset_number(const struct ConfigSubset *sub, const char *name)
Get a number config item by name.
Definition: helpers.c:143
const char * cs_subset_path(const struct ConfigSubset *sub, const char *name)
Get a path config item by name.
Definition: helpers.c:168
long cs_subset_long(const struct ConfigSubset *sub, const char *name)
Get a long config item by name.
Definition: helpers.c:95
struct MbTable * cs_subset_mbtable(const struct ConfigSubset *sub, const char *name)
Get a Multibyte table config item by name.
Definition: helpers.c:119
bool config_str_set_initial(struct ConfigSet *cs, const char *name, const char *value)
Set the initial value of a Config Option.
Definition: helpers.c:332
bool cs_subset_bool(const struct ConfigSubset *sub, const char *name)
Get a boolean config item by name.
Definition: helpers.c:47
bool config_he_set_initial(struct ConfigSet *cs, struct HashElem *he, const char *value)
Set the initial value of a Config Option.
Definition: helpers.c:312
short cs_subset_sort(const struct ConfigSubset *sub, const char *name)
Get a sort config item by name.
Definition: helpers.c:266
const struct Expando * cs_subset_expando(const struct ConfigSubset *sub, const char *name)
Get an Expando config item by name.
Definition: config_type.c:361
Type representing a quad-option.
QuadOption
Possible values for a quad-option.
Definition: quad.h:36
Container for lots of config items.
Definition: set.h:248
A set of inherited config items.
Definition: subset.h:46
Parsed Expando trees.
Definition: expando.h:41
The item stored in a Hash Table.
Definition: hash.h:44
Multibyte character table.
Definition: mbtable.h:36
Cached regular expression.
Definition: regex3.h:86
String list.
Definition: slist.h:37