From 3bd567f5e14e60ce7886d5649ab402a639d22e7a Mon Sep 17 00:00:00 2001 From: Adam Harrison Date: Tue, 1 Nov 2022 21:01:25 -0400 Subject: [PATCH] Fixed small plugin header error. --- resources/lite_xl_plugin_api.h | 2 +- scripts/generate_header.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/lite_xl_plugin_api.h b/resources/lite_xl_plugin_api.h index 41a882a..9dc83cd 100644 --- a/resources/lite_xl_plugin_api.h +++ b/resources/lite_xl_plugin_api.h @@ -4,7 +4,7 @@ The lite_xl plugin API is quite simple. Any shared library can be a plugin file, so long as it has an entrypoint that looks like the following, where xxxxx is the plugin name: #include "lite_xl_plugin_api.h" -int lua_open_lite_xl_xxxxx(lua_State* L, void* XL) { +int luaopen_lite_xl_xxxxx(lua_State* L, void* XL) { lite_xl_plugin_init(XL); ... return 1; diff --git a/scripts/generate_header.sh b/scripts/generate_header.sh index 8d5da52..31ad572 100755 --- a/scripts/generate_header.sh +++ b/scripts/generate_header.sh @@ -76,7 +76,7 @@ generate_header() { echo "The lite_xl plugin API is quite simple. Any shared library can be a plugin file, so long" echo "as it has an entrypoint that looks like the following, where xxxxx is the plugin name:" echo '#include "lite_xl_plugin_api.h"' - echo "int lua_open_lite_xl_xxxxx(lua_State* L, void* XL) {" + echo "int luaopen_lite_xl_xxxxx(lua_State* L, void* XL) {" echo " lite_xl_plugin_init(XL);" echo " ..." echo " return 1;"