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 LuaCommands[];
37
41static bool lua_init(struct NeoMutt *n)
42{
43 // struct LuaModuleData *md = MUTT_MEM_CALLOC(1, struct LuaModuleData);
44 // neomutt_set_module_data(n, MODULE_ID_LUA, md);
45
46 return true;
47}
48
52static bool lua_commands_register(struct NeoMutt *n, struct CommandArray *ca)
53{
55}
56
60static bool lua_cleanup(struct NeoMutt *n)
61{
62 // struct LuaModuleData *md = neomutt_get_module_data(n, MODULE_ID_LUA);
63 // ASSERT(md);
64
65 // FREE(&md);
66 return true;
67}
68
72const struct Module ModuleLua = {
74 "lua",
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 ModuleLua
Module for the Lua library.
Definition module.c:72
void lua_cleanup(void)
Clean up Lua.
Definition commands.c:164
const struct Command LuaCommands[]
List of NeoMutt commands to register.
Definition commands.c:146
static bool lua_init(struct NeoMutt *n)
Initialise a Module - Implements Module::init()
Definition module.c:41
static bool lua_commands_register(struct NeoMutt *n, struct CommandArray *ca)
Register NeoMutt Commands - Implements Module::commands_register()
Definition module.c:52
Lua private Module data.
@ MODULE_ID_LUA
ModuleLua, Integrated Lua scripting
Definition module_api.h:74
Convenience wrapper for the library headers.
Container for Accounts, Notifications.
Definition neomutt.h:41