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 HooksVars[];
36extern const struct Command HooksCommands[];
37
41static bool hooks_config_define_variables(struct NeoMutt *n, struct ConfigSet *cs)
42{
44}
45
49static bool hooks_commands_register(struct NeoMutt *n, struct CommandArray *ca)
50{
52}
53
57const struct Module ModuleHooks = {
59 "hooks",
60 NULL, // init
61 NULL, // config_define_types
64 NULL, // gui_init
65 NULL, // gui_cleanup
66 NULL, // cleanup
67};
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 ModuleHooks
Module for the Hooks library.
Definition module.c:57
const struct Command HooksCommands[]
Hook Commands.
Definition commands.c:40
struct ConfigDef HooksVars[]
Config definitions for the Hooks library.
Definition config.c:29
static bool hooks_commands_register(struct NeoMutt *n, struct CommandArray *ca)
Register NeoMutt Commands - Implements Module::commands_register()
Definition module.c:49
static bool hooks_config_define_variables(struct NeoMutt *n, struct ConfigSet *cs)
Define the Config Variables - Implements Module::config_define_variables()
Definition module.c:41
@ MODULE_ID_HOOKS
ModuleHooks, Hook Commands
Definition module_api.h:70
Container for lots of config items.
Definition set.h:250
Container for Accounts, Notifications.
Definition neomutt.h:41