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 CommandsCommands[];
37
41static bool commands_init(struct NeoMutt *n)
42{
43 // struct CommandsModuleData *md = MUTT_MEM_CALLOC(1, struct CommandsModuleData);
44 // neomutt_set_module_data(n, MODULE_ID_COMMANDS, md);
45
46 return true;
47}
48
52static bool commands_commands_register(struct NeoMutt *n, struct CommandArray *ca)
53{
55}
56
60static bool commands_cleanup(struct NeoMutt *n)
61{
62 // struct CommandsModuleData *md = neomutt_get_module_data(n, MODULE_ID_COMMANDS);
63 // ASSERT(md);
64
65 // FREE(&md);
66 return true;
67}
68
72const struct Module ModuleCommands = {
74 "commands",
76 NULL, // config_define_types
77 NULL, // config_define_variables
79 NULL, // gui_init
80 NULL, // gui_cleanup
82};
const struct Command CommandsCommands[]
General NeoMutt Commands.
Definition commands.c:45
const struct Module ModuleCommands
Module for the Commands library.
Definition module.c:72
static bool commands_commands_register(struct NeoMutt *n, struct CommandArray *ca)
Register NeoMutt Commands - Implements Module::commands_register()
Definition module.c:52
static bool commands_init(struct NeoMutt *n)
Initialise a Module - Implements Module::init()
Definition module.c:41
static bool commands_cleanup(struct NeoMutt *n)
Clean up a Module - Implements Module::cleanup()
Definition module.c:60
Commands private Module data.
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.
@ MODULE_ID_COMMANDS
ModuleCommands, NeoMutt Commands
Definition module_api.h:54
Convenience wrapper for the library headers.
Container for Accounts, Notifications.
Definition neomutt.h:41