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 "core/lib.h"
34#include "module_data.h"
35
36extern const struct Command CompCommands[];
37
41static bool compmbox_init(struct NeoMutt *n)
42{
43 // struct CompmboxModuleData *md = MUTT_MEM_CALLOC(1, struct CompmboxModuleData);
44 // neomutt_set_module_data(n, MODULE_ID_COMPMBOX, md);
45
46 return true;
47}
48
52static bool compmbox_commands_register(struct NeoMutt *n, struct CommandArray *ca)
53{
55}
56
60static bool compmbox_cleanup(struct NeoMutt *n)
61{
62 // struct CompmboxModuleData *md = neomutt_get_module_data(n, MODULE_ID_COMPMBOX);
63 // ASSERT(md);
64
65 // FREE(&md);
66 return true;
67}
68
72const struct Module ModuleCompmbox = {
74 "compmbox",
76 NULL, // config_define_types
77 NULL, // config_define_variables
79 NULL, // gui_init
80 NULL, // gui_cleanup
82};
const struct Command CompCommands[]
Compression Commands.
Definition compress.c:62
static bool compmbox_commands_register(struct NeoMutt *n, struct CommandArray *ca)
Register NeoMutt Commands - Implements Module::commands_register()
Definition module.c:52
static bool compmbox_cleanup(struct NeoMutt *n)
Clean up a Module - Implements Module::cleanup()
Definition module.c:60
const struct Module ModuleCompmbox
Module for the Compmbox library.
Definition module.c:72
static bool compmbox_init(struct NeoMutt *n)
Initialise a Module - Implements Module::init()
Definition module.c:41
Compmbox private Module data.
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.
@ MODULE_ID_COMPMBOX
ModuleCompmbox, Compressed Mailbox
Definition module_api.h:56
Convenience wrapper for the library headers.
Container for Accounts, Notifications.
Definition neomutt.h:41