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
40
static
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
51
static
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
63
const
struct
Module
ModuleMutt
= {
64
MODULE_ID_MUTT
,
"mutt"
,
mutt_init
,
65
NULL,
// config_define_types
66
NULL,
// config_define_variables
67
NULL,
// commands_register
68
NULL,
// gui_init
69
NULL,
// gui_cleanup
70
mutt_cleanup
,
71
};
lib.h
Convenience wrapper for the core headers.
ModuleMutt
const struct Module ModuleMutt
Module for the Mutt library.
Definition
module.c:63
mutt_init
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.h
Memory management wrappers.
MODULE_ID_MUTT
@ MODULE_ID_MUTT
ModuleMutt, Mutt
Definition
module_api.h:79
mutt_cleanup
static bool mutt_cleanup(struct NeoMutt *n)
Clean up a Module - Implements Module::cleanup()
Definition
module.c:51
mutt_init
static bool mutt_init(struct NeoMutt *n)
Initialise a Module - Implements Module::init()
Definition
module.c:40
module_data.h
Mutt private Module data.
signal2.h
Signal handling.
Module
Definition
module_api.h:102
NeoMutt
Container for Accounts, Notifications.
Definition
neomutt.h:41