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 NotmuchVars[];
38
39extern const struct Command NmCommands[];
40
44static bool notmuch_init(struct NeoMutt *n)
45{
46 // struct NotmuchModuleData *md = MUTT_MEM_CALLOC(1, struct NotmuchModuleData);
47 // neomutt_set_module_data(n, MODULE_ID_NOTMUCH, md);
48
49 return true;
50}
51
55static bool notmuch_config_define_variables(struct NeoMutt *n, struct ConfigSet *cs)
56{
57 bool rc = false;
58
59#if defined(USE_NOTMUCH)
61#endif
62
63 return rc;
64}
65
69static bool notmuch_commands_register(struct NeoMutt *n, struct CommandArray *ca)
70{
71 return commands_register(ca, NmCommands);
72}
73
77static bool notmuch_cleanup(struct NeoMutt *n)
78{
79 // struct NotmuchModuleData *md = neomutt_get_module_data(n, MODULE_ID_NOTMUCH);
80 // ASSERT(md);
81
82 // FREE(&md);
83 return true;
84}
85
89const struct Module ModuleNotmuch = {
91 "notmuch",
93 NULL, // config_define_types
96 NULL, // gui_init
97 NULL, // gui_cleanup
99};
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 ModuleNotmuch
Module for the Notmuch library.
Definition module.c:89
@ MODULE_ID_NOTMUCH
ModuleNotmuch, Notmuch
Definition module_api.h:82
Convenience wrapper for the library headers.
struct ConfigDef NotmuchVars[]
Config definitions for the Notmuch library.
Definition config.c:75
static bool notmuch_config_define_variables(struct NeoMutt *n, struct ConfigSet *cs)
Define the Config Variables - Implements Module::config_define_variables()
Definition module.c:55
const struct Command NmCommands[]
Notmuch Commands.
Definition notmuch.c:91
static bool notmuch_init(struct NeoMutt *n)
Initialise a Module - Implements Module::init()
Definition module.c:44
static bool notmuch_cleanup(struct NeoMutt *n)
Clean up a Module - Implements Module::cleanup()
Definition module.c:77
static bool notmuch_commands_register(struct NeoMutt *n, struct CommandArray *ca)
Register NeoMutt Commands - Implements Module::commands_register()
Definition module.c:69
Notmuch private Module data.
Container for lots of config items.
Definition set.h:251
Container for Accounts, Notifications.
Definition neomutt.h:41