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 "core/lib.h"
34#include "module_data.h"
35
36extern const struct Command KeyCommands[];
37
41static bool key_init(struct NeoMutt *n)
42{
43 // struct KeyModuleData *md = MUTT_MEM_CALLOC(1, struct KeyModuleData);
44 // neomutt_set_module_data(n, MODULE_ID_KEY, md);
45
46 return true;
47}
48
52static bool key_commands_register(struct NeoMutt *n, struct CommandArray *ca)
53{
55}
56
60static bool key_cleanup(struct NeoMutt *n)
61{
62 // struct KeyModuleData *md = neomutt_get_module_data(n, MODULE_ID_KEY);
63 // ASSERT(md);
64
65 // FREE(&md);
66 return true;
67}
68
72const struct Module ModuleKey = {
74 "key",
76 NULL, // config_define_types
77 NULL, // config_define_variables
79 NULL, // gui_init
80 NULL, // gui_cleanup
82};
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 ModuleKey
Module for the Key library.
Definition module.c:72
const struct Command KeyCommands[]
Key Binding Commands.
Definition init.c:52
static bool key_commands_register(struct NeoMutt *n, struct CommandArray *ca)
Register NeoMutt Commands - Implements Module::commands_register()
Definition module.c:52
static bool key_init(struct NeoMutt *n)
Initialise a Module - Implements Module::init()
Definition module.c:41
static bool key_cleanup(struct NeoMutt *n)
Clean up a Module - Implements Module::cleanup()
Definition module.c:60
Key private Module data.
@ MODULE_ID_KEY
ModuleKey, Key mappings
Definition module_api.h:73
Convenience wrapper for the library headers.
Container for Accounts, Notifications.
Definition neomutt.h:41