NeoMutt  2023-05-17-16-g61469c
Teaching an old dog new tricks
DOXYGEN
config.c
Go to the documentation of this file.
1
29#include "config.h"
30#include <stddef.h>
31#include <config/lib.h>
32#include <stdbool.h>
33
37static struct ConfigDef PatternVars[] = {
38 // clang-format off
39 { "external_search_command", DT_STRING|DT_COMMAND, 0, 0, NULL,
40 "External search command"
41 },
42 { "pattern_format", DT_STRING, IP "%2n %-15e %d", 0, NULL,
43 "printf-like format string for the pattern completion menu"
44 },
45 { "thorough_search", DT_BOOL, true, 0, NULL,
46 "Decode headers and messages before searching them"
47 },
48 { NULL },
49 // clang-format on
50};
51
56{
58}
Convenience wrapper for the config headers.
bool cs_register_variables(const struct ConfigSet *cs, struct ConfigDef vars[], uint32_t flags)
Register a set of config items.
Definition: set.c:279
#define IP
Definition: set.h:54
bool config_init_pattern(struct ConfigSet *cs)
Register pattern config variables - Implements module_init_config_t -.
Definition: config.c:55
static struct ConfigDef PatternVars[]
Config definitions for the pattern library.
Definition: config.c:37
Definition: set.h:64
Container for lots of config items.
Definition: set.h:252
#define DT_BOOL
boolean option
Definition: types.h:30
#define DT_STRING
a string
Definition: types.h:41
#define DT_COMMAND
A command.
Definition: types.h:53
#define DT_NO_FLAGS
No flags are set.
Definition: types.h:47