NeoMutt  2024-10-02-37-gfa9146
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 ConfigSubset;
30
31bool cs_subset_bool (const struct ConfigSubset *sub, const char *name);
32unsigned char cs_subset_enum (const struct ConfigSubset *sub, const char *name);
33long cs_subset_long (const struct ConfigSubset *sub, const char *name);
34struct MbTable *cs_subset_mbtable(const struct ConfigSubset *sub, const char *name);
35short cs_subset_number (const struct ConfigSubset *sub, const char *name);
36const char * cs_subset_path (const struct ConfigSubset *sub, const char *name);
37enum QuadOption cs_subset_quad (const struct ConfigSubset *sub, const char *name);
38const struct Regex * cs_subset_regex (const struct ConfigSubset *sub, const char *name);
39const struct Slist * cs_subset_slist (const struct ConfigSubset *sub, const char *name);
40short cs_subset_sort (const struct ConfigSubset *sub, const char *name);
41const char * cs_subset_string (const struct ConfigSubset *sub, const char *name);
42const struct Expando * cs_subset_expando(const struct ConfigSubset *sub, const char *name);
43
44#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 cs_subset_bool(const struct ConfigSubset *sub, const char *name)
Get a boolean config item by name.
Definition: helpers.c:47
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:357
Type representing a quad-option.
QuadOption
Possible values for a quad-option.
Definition: quad.h:36
A set of inherited config items.
Definition: subset.h:47
const char * name
Scope name of Subset.
Definition: subset.h:48
Parsed Expando trees.
Definition: expando.h:41
Multibyte character table.
Definition: mbtable.h:36
Cached regular expression.
Definition: regex3.h:86
String list.
Definition: slist.h:37