NeoMutt  2025-12-11-435-g4ac674
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 "config/lib.h"
33#include "core/lib.h"
34
35extern struct ConfigDef NotmuchVars[];
36
37extern const struct Command NmCommands[];
38
42static bool notmuch_config_define_variables(struct NeoMutt *n, struct ConfigSet *cs)
43{
44 bool rc = false;
45
46#if defined(USE_NOTMUCH)
48#endif
49
50 return rc;
51}
52
56static bool notmuch_commands_register(struct NeoMutt *n, struct CommandArray *ca)
57{
58 return commands_register(ca, NmCommands);
59}
60
64const struct Module ModuleNotmuch = {
66 "notmuch",
67 NULL, // init
68 NULL, // config_define_types
71 NULL, // gui_init
72 NULL, // gui_cleanup
73 NULL, // cleanup
74};
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:64
@ MODULE_ID_NOTMUCH
ModuleNotmuch, Notmuch
Definition module_api.h:82
struct ConfigDef NotmuchVars[]
Config definitions for the Notmuch library.
Definition config.c:105
static bool notmuch_config_define_variables(struct NeoMutt *n, struct ConfigSet *cs)
Define the Config Variables - Implements Module::config_define_variables()
Definition module.c:42
const struct Command NmCommands[]
Notmuch Commands.
Definition notmuch.c:91
static bool notmuch_commands_register(struct NeoMutt *n, struct CommandArray *ca)
Register NeoMutt Commands - Implements Module::commands_register()
Definition module.c:56
Container for lots of config items.
Definition set.h:250
Container for Accounts, Notifications.
Definition neomutt.h:41