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 "core/lib.h"
33#include "memory.h"
34#include "module_data.h"
35#include "signal2.h"
36
40static bool mutt_init(struct NeoMutt *n)
41{
42 // struct MuttModuleData *md = MUTT_MEM_CALLOC(1, struct MuttModuleData);
43 // neomutt_set_module_data(n, MODULE_ID_MUTT, md);
44
45 return true;
46}
47
51static bool mutt_cleanup(struct NeoMutt *n)
52{
53 // struct MuttModuleData *md = neomutt_get_module_data(n, MODULE_ID_MUTT);
54 // ASSERT(md);
55
56 // FREE(&md);
57 return true;
58}
59
63const struct Module ModuleMutt = {
65 NULL, // config_define_types
66 NULL, // config_define_variables
67 NULL, // commands_register
68 NULL, // gui_init
69 NULL, // gui_cleanup
71};
Convenience wrapper for the core headers.
const struct Module ModuleMutt
Module for the Mutt library.
Definition module.c:63
static int mutt_init(struct ConfigSet *cs, struct Buffer *dlevel, struct Buffer *dfile, bool skip_sys_rc, struct StringArray *user_files, struct StringArray *commands)
Initialise NeoMutt.
Definition main.c:430
Memory management wrappers.
@ MODULE_ID_MUTT
ModuleMutt, Mutt
Definition module_api.h:79
static bool mutt_cleanup(struct NeoMutt *n)
Clean up a Module - Implements Module::cleanup()
Definition module.c:51
static bool mutt_init(struct NeoMutt *n)
Initialise a Module - Implements Module::init()
Definition module.c:40
Mutt private Module data.
Signal handling.
Container for Accounts, Notifications.
Definition neomutt.h:41