![]() |
![]() |
![]() |
![]() |
You MUST have the Perl5 loader plugin installed and working as well as the gobject-introspection package for GPlugin installed to use Perl5 plugins.
Like all plugins in GPlugin, Perl5 plugins must also implement
the gplugin_query
, gplugin_load
, and
gplugin_unload
functions.
The following is a basic Perl5 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 26 27 28 |
use strict; use Glib::Object::Introspection; Glib::Object::Introspection->setup(basename => "GPlugin", version => "1.0", package=> "GPlugin"); sub gplugin_query { return GPlugin::PluginInfo->new( id => "gplugin/perl5-basic-plugin", abi_version => 0x01020304, name => "basic plugin", authors => ("author1"), category => "test", version => "version", license_id => "license", summary => "summary", website => "website", description => "description", ); } sub gplugin_load { return 0; } sub gplugin_unload { return 0; } |