NeoMutt  2024-12-12-14-g7b49f7
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
config.c
Go to the documentation of this file.
1
29#include "config.h"
30#include <stdbool.h>
31#include <stddef.h>
32#include "config/lib.h"
33
37static struct ConfigDef ProgressVars[] = {
38 // clang-format off
39 { "net_inc", DT_NUMBER|D_INTEGER_NOT_NEGATIVE, 10, 0, NULL,
40 "(socket) Update the progress bar after this many KB sent/received (0 to disable)"
41 },
42 { "read_inc", DT_NUMBER|D_INTEGER_NOT_NEGATIVE, 10, 0, NULL,
43 "Update the progress bar after this many records read (0 to disable)"
44 },
45 { "time_inc", DT_NUMBER|D_INTEGER_NOT_NEGATIVE, 0, 0, NULL,
46 "Frequency of progress bar updates (milliseconds)"
47 },
48 { "write_inc", DT_NUMBER|D_INTEGER_NOT_NEGATIVE, 10, 0, NULL,
49 "Update the progress bar after this many records written (0 to disable)"
50 },
51 { NULL },
52 // clang-format on
53};
54
59{
61}
Convenience wrapper for the config headers.
bool cs_register_variables(const struct ConfigSet *cs, struct ConfigDef vars[])
Register a set of config items.
Definition: set.c:281
bool config_init_progress(struct ConfigSet *cs)
Register progress config variables - Implements module_init_config_t -.
Definition: config.c:58
static struct ConfigDef ProgressVars[]
Config definitions for the Progress Bar.
Definition: config.c:37
Definition: set.h:64
Container for lots of config items.
Definition: set.h:252
@ DT_NUMBER
a number
Definition: types.h:39
#define D_INTEGER_NOT_NEGATIVE
Negative numbers are not allowed.
Definition: types.h:101