NeoMutt  2021-02-05-666-ge300cd
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 
34 static struct ConfigDef PatternVars[] = {
35  // clang-format off
36  { "external_search_command", DT_STRING|DT_COMMAND, 0, 0, NULL,
37  "External search command"
38  },
39  { "pattern_format", DT_STRING, IP "%2n %-15e %d", 0, NULL,
40  "printf-like format string for the pattern completion menu"
41  },
42  { "thorough_search", DT_BOOL, true, 0, NULL,
43  "Decode headers and messages before searching them"
44  },
45  { NULL },
46  // clang-format on
47 };
48 
53 {
54  return cs_register_variables(cs, PatternVars, 0);
55 }
Container for lots of config items.
Definition: set.h:259
#define IP
Definition: set.h:54
Definition: set.h:63
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:276
bool config_init_pattern(struct ConfigSet *cs)
Register pattern config variables - Implements module_init_config_t -.
Definition: config.c:52
#define DT_STRING
a string
Definition: types.h:41
#define DT_COMMAND
A command.
Definition: types.h:50
#define DT_BOOL
boolean option
Definition: types.h:30