NeoMutt  2023-05-17-16-g61469c
Teaching an old dog new tricks
DOXYGEN
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
31const struct Address *cs_subset_address(const struct ConfigSubset *sub, const char *name);
32bool cs_subset_bool (const struct ConfigSubset *sub, const char *name);
33unsigned char cs_subset_enum (const struct ConfigSubset *sub, const char *name);
34long cs_subset_long (const struct ConfigSubset *sub, const char *name);
35struct MbTable *cs_subset_mbtable(const struct ConfigSubset *sub, const char *name);
36short cs_subset_number (const struct ConfigSubset *sub, const char *name);
37const char * cs_subset_path (const struct ConfigSubset *sub, const char *name);
38enum QuadOption cs_subset_quad (const struct ConfigSubset *sub, const char *name);
39const struct Regex * cs_subset_regex (const struct ConfigSubset *sub, const char *name);
40const struct Slist * cs_subset_slist (const struct ConfigSubset *sub, const char *name);
41short cs_subset_sort (const struct ConfigSubset *sub, const char *name);
42const char * cs_subset_string (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:243
const char * cs_subset_string(const struct ConfigSubset *sub, const char *name)
Get a string config item by name.
Definition: helpers.c:317
const struct Slist * cs_subset_slist(const struct ConfigSubset *sub, const char *name)
Get a string-list config item by name.
Definition: helpers.c:268
enum QuadOption cs_subset_quad(const struct ConfigSubset *sub, const char *name)
Get a quad-value config item by name.
Definition: helpers.c:218
unsigned char cs_subset_enum(const struct ConfigSubset *sub, const char *name)
Get a enumeration config item by name.
Definition: helpers.c:97
short cs_subset_number(const struct ConfigSubset *sub, const char *name)
Get a number config item by name.
Definition: helpers.c:169
const char * cs_subset_path(const struct ConfigSubset *sub, const char *name)
Get a path config item by name.
Definition: helpers.c:194
long cs_subset_long(const struct ConfigSubset *sub, const char *name)
Get a long config item by name.
Definition: helpers.c:121
struct MbTable * cs_subset_mbtable(const struct ConfigSubset *sub, const char *name)
Get a Multibyte table config item by name.
Definition: helpers.c:145
const struct Address * cs_subset_address(const struct ConfigSubset *sub, const char *name)
Get an Address config item by name.
Definition: helpers.c:49
bool cs_subset_bool(const struct ConfigSubset *sub, const char *name)
Get a boolean config item by name.
Definition: helpers.c:73
short cs_subset_sort(const struct ConfigSubset *sub, const char *name)
Get a sort config item by name.
Definition: helpers.c:292
Type representing a quad-option.
QuadOption
Possible values for a quad-option.
Definition: quad.h:36
An email address.
Definition: address.h:36
A set of inherited config items.
Definition: subset.h:47
Multibyte character table.
Definition: mbtable.h:34
Cached regular expression.
Definition: regex3.h:89
String list.
Definition: slist.h:47