NeoMutt  2025-12-11-435-g4ac674
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
module.c File Reference

Definition of the Progress Module. More...

#include "config.h"
#include <stdbool.h>
#include <stddef.h>
#include "config/lib.h"
#include "core/lib.h"
+ Include dependency graph for module.c:

Go to the source code of this file.

Functions

static bool progress_config_define_variables (struct NeoMutt *n, struct ConfigSet *cs)
 Define the Config Variables - Implements Module::config_define_variables()
 

Variables

struct ConfigDef ProgressVars []
 Config definitions for the Progress Bar.
 
const struct Module ModuleProgress
 Module for the Progress library.
 

Detailed Description

Definition of the Progress Module.

Authors
  • Richard Russon

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Definition in file module.c.

Function Documentation

◆ progress_config_define_variables()

static bool progress_config_define_variables ( struct NeoMutt * n,
struct ConfigSet * cs )
static

Define the Config Variables - Implements Module::config_define_variables()

Definition at line 40 of file module.c.

41{
43}
bool cs_register_variables(const struct ConfigSet *cs, struct ConfigDef vars[])
Register a set of config items.
Definition set.c:290
struct ConfigDef ProgressVars[]
Config definitions for the Progress Bar.
Definition config.c:36
+ Here is the call graph for this function:

Variable Documentation

◆ ProgressVars

struct ConfigDef ProgressVars[]
extern

Config definitions for the Progress Bar.

Definition at line 36 of file config.c.

36 {
37 // clang-format off
38 { "net_inc", DT_NUMBER|D_INTEGER_NOT_NEGATIVE, 10, 0, NULL,
39 "(socket) Update the progress bar after this many KB sent/received (0 to disable)"
40 },
41 { "read_inc", DT_NUMBER|D_INTEGER_NOT_NEGATIVE, 10, 0, NULL,
42 "Update the progress bar after this many records read (0 to disable)"
43 },
44 { "time_inc", DT_NUMBER|D_INTEGER_NOT_NEGATIVE, 0, 0, NULL,
45 "Frequency of progress bar updates (milliseconds)"
46 },
47 { "write_inc", DT_NUMBER|D_INTEGER_NOT_NEGATIVE, 10, 0, NULL,
48 "Update the progress bar after this many records written (0 to disable)"
49 },
50 { NULL },
51 // clang-format on
52};
@ DT_NUMBER
a number
Definition types.h:38
#define D_INTEGER_NOT_NEGATIVE
Negative numbers are not allowed.
Definition types.h:101

◆ ModuleProgress

const struct Module ModuleProgress
Initial value:
= {
"progress",
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
}
@ MODULE_ID_PROGRESS
ModuleProgress, Progress Bar
Definition module_api.h:88
static bool progress_config_define_variables(struct NeoMutt *n, struct ConfigSet *cs)
Define the Config Variables - Implements Module::config_define_variables()
Definition module.c:40

Module for the Progress library.

Definition at line 48 of file module.c.

48 {
50 "progress",
51 NULL, // init
52 NULL, // config_define_types
54 NULL, // commands_register
55 NULL, // gui_init
56 NULL, // gui_cleanup
57 NULL, // cleanup
58};