NeoMutt  2025-12-11-435-g4ac674
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
lib.h
Go to the documentation of this file.
1
22
34
35#ifndef MUTT_LUA_LIB_H
36#define MUTT_LUA_LIB_H
37
38
39#ifdef USE_LUA
40
41struct Buffer;
42struct Command;
43struct ParseContext;
44struct ParseError;
45
46void lua_cleanup(void);
47
48enum CommandResult parse_lua (const struct Command *cmd, struct Buffer *line, const struct ParseContext *pc, struct ParseError *pe);
49enum CommandResult parse_lua_source(const struct Command *cmd, struct Buffer *line, const struct ParseContext *pc, struct ParseError *pe);
50
51#else
52
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:37
enum CommandResult parse_lua_source(const struct Command *cmd, struct Buffer *line, const struct ParseContext *pc, struct ParseError *pe)
Parse the 'lua-source' command - Implements Command::parse() -.
Definition commands.c:100
enum CommandResult parse_lua(const struct Command *cmd, struct Buffer *line, const struct ParseContext *pc, struct ParseError *pe)
Parse the 'lua' command - Implements Command::parse() -.
Definition commands.c:57
void lua_cleanup(void)
Clean up Lua.
Definition commands.c:167
String manipulation buffer.
Definition buffer.h:36
Context for config parsing (history/backtrace)
Definition pcontext.h:34
Detailed error information from config parsing.
Definition perror.h:34