Interface
GPluginPlugin
Description [src]
interface GPlugin.Plugin : GObject.Object
GPluginPlugin
is an interface that represents what GPlugin expects for a plugin.
Prerequisite
In order to implement Plugin, your type must inherit fromGObject
.
Instance methods
gplugin_plugin_get_desired_state
Gets the desired state of the plugin. Typically this will hold the same
value of GPluginPlugin:state
, but if a state change failed this
will remain set to the state that was attempted.
since: 0.38
gplugin_plugin_set_desired_state
Sets the desired state of the plugin. This shouldn’t need to be called by
anyone except GPluginLoader
which manages the state of plugins.
since: 0.38
gplugin_plugin_set_state
Changes the state of plugin
to state
. This function should only be called
by loaders.
Properties
GPlugin.Plugin:desired-state
The desired state of the plugin. Typically this just mirrors the state property, but if a state change failed this will remain set to the state that was attempted.
since: 0.38
Interface structure
struct GPluginPluginInterface {
void (* state_changed) (
GPluginPlugin* plugin,
GPluginPluginState oldstate,
GPluginPluginState newstate
);
}
The interface that defines the behavior of plugins, including properties and signals.
Interface members
state_changed |
|
The class closure for the |