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 from GObject.

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.

Available since: 0.38.0

gplugin_plugin_get_error

Gets the GError, if any, that the plugin returned during load or unload.

gplugin_plugin_get_filename

Returns the filename that plugin was loaded from.

gplugin_plugin_get_info

Returns the plugin info for plugin.

gplugin_plugin_get_loader

Returns the loader that loaded plugin.

gplugin_plugin_get_state

Gets the current state of plugin.

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.

Available since: 0.38.0

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.

Available since: 0.38.0

GPlugin.Plugin:error

An error that was returned if the plugin failed to load or unload.

GPlugin.Plugin:filename

The absolute path to the plugin on disk.

GPlugin.Plugin:info

The plugin info from this plugin.

GPlugin.Plugin:loader

The loader that loaded this plugin.

GPlugin.Plugin:state

The plugin state that this plugin is in.

Signals

GPlugin.Plugin::state-changed

Emitted when plugin changes state.

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
void (* state_changed) (
    GPluginPlugin* plugin,
    GPluginPluginState oldstate,
    GPluginPluginState newstate
  )
 No description available.

Virtual methods

GPlugin.Plugin.state_changed
No description available.