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 MhVars[];
38
42static bool mh_init(struct NeoMutt *n)
43{
44 // struct MhModuleData *md = MUTT_MEM_CALLOC(1, struct MhModuleData);
45 // neomutt_set_module_data(n, MODULE_ID_MH, md);
46
47 return true;
48}
49
53static bool mh_config_define_variables(struct NeoMutt *n, struct ConfigSet *cs)
54{
55 return cs_register_variables(cs, MhVars);
56}
57
61static bool mh_cleanup(struct NeoMutt *n)
62{
63 // struct MhModuleData *md = neomutt_get_module_data(n, MODULE_ID_MH);
64 // ASSERT(md);
65
66 // FREE(&md);
67 return true;
68}
69
73const struct Module ModuleMh = {
75 "mh",
76 mh_init,
77 NULL, // config_define_types
79 NULL, // commands_register
80 NULL, // gui_init
81 NULL, // gui_cleanup
83};
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
Convenience wrapper for the core headers.
const struct Module ModuleMh
Module for the Mh library.
Definition module.c:73
struct ConfigDef MhVars[]
Config definitions for the Mh library.
Definition config.c:37
static bool mh_config_define_variables(struct NeoMutt *n, struct ConfigSet *cs)
Define the Config Variables - Implements Module::config_define_variables()
Definition module.c:53
static bool mh_cleanup(struct NeoMutt *n)
Clean up a Module - Implements Module::cleanup()
Definition module.c:61
static bool mh_init(struct NeoMutt *n)
Initialise a Module - Implements Module::init()
Definition module.c:42
Mh private Module data.
@ MODULE_ID_MH
ModuleMh, Mh Mailbox
Definition module_api.h:78
Convenience wrapper for the library headers.
Container for lots of config items.
Definition set.h:251
Container for Accounts, Notifications.
Definition neomutt.h:41