Class
GPluginLoader
Description [src]
abstract class GPlugin.Loader : GObject.Object
{
/* No available fields */
}
An abstract class that should not be accessed directly.
Instance methods
gplugin_loader_get_supported_extensions
Returns a GSList
of strings containing the extensions that the
loader supports. Each extension should not include the dot. For example:
so, dll, py, etc.
gplugin_loader_load_plugin
This function is called by the plugin manager to ask loader
to load
plugin
.
gplugin_loader_query_plugin
This function is called by the plugin manager to ask loader
to query
filename
and determine if it’s a usable plugin.
gplugin_loader_unload_plugin
This function is called by the plugin manager to ask loader
to unload
plugin
.
Signals
Signals inherited from GObject (1)
GObject::notify
The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.
Class structure
struct GPluginLoaderClass {
GSList* (* supported_extensions) (
GPluginLoader* loader
);
GPluginPlugin* (* query) (
GPluginLoader* loader,
const char* filename,
GError** error
);
gboolean (* load) (
GPluginLoader* loader,
GPluginPlugin* plugin,
GError** error
);
gboolean (* unload) (
GPluginLoader* loader,
GPluginPlugin* plugin,
gboolean shutdown,
GError** error
);
}
GPluginLoaderClass
defines the behavior for loading plugins.
Class members
supported_extensions: GSList* (* supported_extensions) ( GPluginLoader* loader )
The supported_extensions vfunc returns a
GList
of file extensions that this loader supports without the leading dot. For example: ‘so’, ‘dll’, ‘py’, etc.query: GPluginPlugin* (* query) ( GPluginLoader* loader, const char* filename, GError** error )
The query vfunc is called when the plugin manager needs to query a plugin that has a file extension from
supported_extensions
.load: gboolean (* load) ( GPluginLoader* loader, GPluginPlugin* plugin, GError** error )
The load vfunc is called when the plugin manager wants to load a plugin that was previously queried by this loader.
unload: gboolean (* unload) ( GPluginLoader* loader, GPluginPlugin* plugin, gboolean shutdown, GError** error )
The unload vfunc is called when the plugin manager wants to unload a previously loaded plugin from this loader.
Virtual methods
GPlugin.LoaderClass.load
The load vfunc is called when the plugin manager wants to load a plugin that was previously queried by this loader.
GPlugin.LoaderClass.query
The query vfunc is called when the plugin manager needs to query a
plugin that has a file extension from supported_extensions
.
GPlugin.LoaderClass.supported_extensions
The supported_extensions vfunc returns a GList
of
file extensions that this loader supports without the
leading dot. For example: ‘so’, ‘dll’, ‘py’, etc.
GPlugin.LoaderClass.unload
The unload vfunc is called when the plugin manager wants to unload a previously loaded plugin from this loader.