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 MboxVars[] = {
35  // clang-format off
36  { "check_mbox_size", DT_BOOL, false, 0, NULL,
37  "(mbox,mmdf) Use mailbox size as an indicator of new mail"
38  },
39  { NULL },
40  // clang-format on
41 };
42 
46 bool config_init_mbox(struct ConfigSet *cs)
47 {
48  return cs_register_variables(cs, MboxVars, 0);
49 }
Container for lots of config items.
Definition: set.h:259
Definition: set.h:63
Convenience wrapper for the config headers.
bool config_init_mbox(struct ConfigSet *cs)
Register mbox config variables - Implements module_init_config_t -.
Definition: config.c:46
bool cs_register_variables(const struct ConfigSet *cs, struct ConfigDef vars[], uint32_t flags)
Register a set of config items.
Definition: set.c:276
#define DT_BOOL
boolean option
Definition: types.h:30