NeoMutt  2025-12-11-58-g09398d
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
lib.h File Reference

Integrated Lua scripting. More...

#include "config.h"
+ Include dependency graph for lib.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void lua_init (void)
 Setup feature commands.
 
void lua_cleanup (void)
 Clean up Lua.
 
enum CommandResult parse_lua (const struct Command *cmd, struct Buffer *line, struct Buffer *err)
 Parse the 'lua' command - Implements Command::parse() -.
 
enum CommandResult parse_lua_source (const struct Command *cmd, struct Buffer *line, struct Buffer *err)
 Parse the 'lua-source' command - Implements Command::parse() -.
 

Detailed Description

Integrated Lua scripting.

Authors
  • Richard Russon

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Definition in file lib.h.

Function Documentation

◆ lua_init()

void lua_init ( void )

Setup feature commands.

Definition at line 162 of file commands.c.

163{
165}
bool commands_register(struct CommandArray *ca, const struct Command *cmds)
Add commands to Commands array.
Definition command.c:51
static const struct Command LuaCommands[]
List of NeoMutt commands to register.
Definition commands.c:144
Container for Accounts, Notifications.
Definition neomutt.h:43
struct CommandArray commands
NeoMutt commands.
Definition neomutt.h:51
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ lua_cleanup()

void lua_cleanup ( void )

Clean up Lua.

Definition at line 170 of file commands.c.

171{
172 if (LuaState)
173 {
174 lua_close(LuaState);
175 LuaState = NULL;
176 }
177}
lua_State * LuaState
Global Lua State.
Definition lua.c:56
+ Here is the caller graph for this function: