NeoMutt  2025-12-11-435-g4ac674
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
module.c
Go to the documentation of this file.
1
22
28
29#include "config.h"
30#include <stdbool.h>
31#include <stddef.h>
32#include "config/lib.h"
33#include "core/lib.h"
34
35extern struct ConfigDef ImapVars[];
36extern struct ConfigDef ImapVarsZlib[];
37
38extern const struct Command ImapCommands[];
39
43static bool imap_config_define_variables(struct NeoMutt *n, struct ConfigSet *cs)
44{
45 bool rc = cs_register_variables(cs, ImapVars);
46
47#if defined(USE_ZLIB)
49#endif
50
51 return rc;
52}
53
57static bool imap_commands_register(struct NeoMutt *n, struct CommandArray *ca)
58{
60}
61
65const struct Module ModuleImap = {
67 "imap",
68 NULL, // init
69 NULL, // config_define_types
72 NULL, // gui_init
73 NULL, // gui_cleanup
74 NULL, // cleanup
75};
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:290
bool commands_register(struct CommandArray *ca, const struct Command *cmds)
Add commands to Commands array.
Definition command.c:51
Convenience wrapper for the core headers.
const struct Module ModuleImap
Module for the Imap library.
Definition module.c:65
struct ConfigDef ImapVars[]
Config definitions for the IMAP library.
Definition config.c:70
struct ConfigDef ImapVarsZlib[]
Config definitions for IMAP compression.
Definition config.c:146
static bool imap_commands_register(struct NeoMutt *n, struct CommandArray *ca)
Register NeoMutt Commands - Implements Module::commands_register()
Definition module.c:57
static bool imap_config_define_variables(struct NeoMutt *n, struct ConfigSet *cs)
Define the Config Variables - Implements Module::config_define_variables()
Definition module.c:43
const struct Command ImapCommands[]
Imap Commands.
Definition imap.c:186
@ MODULE_ID_IMAP
ModuleImap, Imap Mailbox
Definition module_api.h:71
Container for lots of config items.
Definition set.h:250
Container for Accounts, Notifications.
Definition neomutt.h:41