![]() |
![]() |
![]() |
![]() |
You MUST have the Lua loader plugin installed and working as well as the gobject-introspection package for GPlugin installed to use Lua plugins.
Like all plugins in GPlugin, Lua plugins must also implement
the gplugin_query
, gplugin_load
, and
gplugin_unload
functions.
The following is a basic Lua plugin.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
local lgi = require 'lgi' local GPlugin = lgi.GPlugin function gplugin_query() return GPlugin.PluginInfo { id = "gplugin-lua/basic-plugin", abi_version = 0x01020304, name = "basic plugin", category = "test", version = "0.0.10", license_id = "license-id", summary = "basic lua plugin", description = "description of the basic lua plugin", authors = { "Gary Kramlich <grim@reaperworld.com>" }, website = "https://bitbucket.org/gplugin/gplugin/" } end function gplugin_load(plugin) return true end function gplugin_unload(plugin) return true end |