NeoMutt  2025-12-11-58-g09398d
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
lib.h
Go to the documentation of this file.
1
22
33
34#ifndef MUTT_LUA_LIB_H
35#define MUTT_LUA_LIB_H
36
37#include "config.h"
38
39#ifdef USE_LUA
40
41struct Buffer;
42struct Command;
43
44void lua_init (void);
45void lua_cleanup(void);
46
47enum CommandResult parse_lua (const struct Command *cmd, struct Buffer *line, struct Buffer *err);
48enum CommandResult parse_lua_source(const struct Command *cmd, struct Buffer *line, struct Buffer *err);
49
50#else
51
52static inline void lua_init (void) {}
53static inline void lua_cleanup(void) {}
54
55#endif
56
57#endif /* MUTT_LUA_LIB_H */
CommandResult
Error codes for command_t parse functions.
Definition command.h:35
enum CommandResult parse_lua_source(const struct Command *cmd, struct Buffer *line, struct Buffer *err)
Parse the 'lua-source' command - Implements Command::parse() -.
Definition commands.c:97
enum CommandResult parse_lua(const struct Command *cmd, struct Buffer *line, struct Buffer *err)
Parse the 'lua' command - Implements Command::parse() -.
Definition commands.c:57
void lua_init(void)
Setup feature commands.
Definition commands.c:162
void lua_cleanup(void)
Clean up Lua.
Definition commands.c:170
String manipulation buffer.
Definition buffer.h:36