NeoMutt  2025-12-11-694-ga89709
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 "mutt/lib.h"
33#include "config/lib.h"
34#include "core/lib.h"
35#include "module_data.h"
36
37extern struct ConfigDef ImapVars[];
38extern struct ConfigDef ImapVarsZlib[];
39
40extern const struct Command ImapCommands[];
41
45static bool imap_init(struct NeoMutt *n)
46{
47 // struct ImapModuleData *md = MUTT_MEM_CALLOC(1, struct ImapModuleData);
48 // neomutt_set_module_data(n, MODULE_ID_IMAP, md);
49
50 return true;
51}
52
56static bool imap_config_define_variables(struct NeoMutt *n, struct ConfigSet *cs)
57{
58 bool rc = cs_register_variables(cs, ImapVars);
59
60#if defined(USE_ZLIB)
62#endif
63
64 return rc;
65}
66
70static bool imap_commands_register(struct NeoMutt *n, struct CommandArray *ca)
71{
73}
74
78static bool imap_cleanup(struct NeoMutt *n)
79{
80 // struct ImapModuleData *md = neomutt_get_module_data(n, MODULE_ID_IMAP);
81 // ASSERT(md);
82
83 // FREE(&md);
84 return true;
85}
86
90const struct Module ModuleImap = {
92 "imap",
94 NULL, // config_define_types
97 NULL, // gui_init
98 NULL, // gui_cleanup
100};
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:90
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:70
static bool imap_config_define_variables(struct NeoMutt *n, struct ConfigSet *cs)
Define the Config Variables - Implements Module::config_define_variables()
Definition module.c:56
static bool imap_cleanup(struct NeoMutt *n)
Clean up a Module - Implements Module::cleanup()
Definition module.c:78
static bool imap_init(struct NeoMutt *n)
Initialise a Module - Implements Module::init()
Definition module.c:45
Imap private Module data.
const struct Command ImapCommands[]
Imap Commands.
Definition imap.c:186
@ MODULE_ID_IMAP
ModuleImap, Imap Mailbox
Definition module_api.h:71
Convenience wrapper for the library headers.
Container for lots of config items.
Definition set.h:251
Container for Accounts, Notifications.
Definition neomutt.h:41