NeoMutt  2025-09-05-70-gcfdde0
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.
 

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 128 of file commands.c.

129{
131}
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:117
Container for Accounts, Notifications.
Definition neomutt.h:42
struct CommandArray commands
NeoMutt commands.
Definition neomutt.h:50
+ 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 136 of file commands.c.

137{
138 if (LuaState)
139 {
140 lua_close(LuaState);
141 LuaState = NULL;
142 }
143}
lua_State * LuaState
Global Lua State.
Definition lua.c:57
+ Here is the caller graph for this function: