gplugin/gplugin
Clone
Summary
Browse
Changes
Graph
Replace the ubuntu-hirsute-amd64 convey plan with a ubuntu-jammy-amd64 plan
2021-12-31, Gary Kramlich
195cf7537aa9
Replace the ubuntu-hirsute-amd64 convey plan with a ubuntu-jammy-amd64 plan
Testing Done:
Ran the plan locally and verified that the clean plan cleaned it up.
Reviewed at https://reviews.imfreedom.org/r/1206/
Title: Lua Plugins
Slug: lua
## Lua Plugins
>
You **MUST** have the Lua loader plugin installed and working as well as the
>
gobject-introspection package for GPlugin instance to use Lua plugins.
### Example Lua Plugin
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.
```lua
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://keep.imfreedom.org/gplugin/gplugin/"
}
end
function
gplugin_load
(
plugin
)
return
true
end
function
gplugin_unload
(
plugin
)
return
true
end
```