| char * | filename | Read / Write / Construct Only |
| GPluginPluginInfo * | info | Read / Write / Construct Only |
| GPluginLoader * | loader | Read / Write / Construct Only |
| GPluginPluginState | state | Read / Write / Construct |
| enum | GPluginPluginState |
| #define | GPLUGIN_TYPE_PLUGIN |
| struct | GPluginPluginInterface |
| GPluginPlugin |
GPluginPlugin is an abstract class that tracks the state of a plugin. It is subclassed by each loader for them to add additional data for their implementation.
gchar *
gplugin_plugin_get_filename (GPluginPlugin *plugin);
Returns the filename that plugin
was loaded from.
GPluginLoader *
gplugin_plugin_get_loader (GPluginPlugin *plugin);
Returns the GPluginLoader that loaded plugin
.
GPluginPluginInfo *
gplugin_plugin_get_info (GPluginPlugin *plugin);
Returns the GPluginPluginInfo for plugin
.
GPluginPluginState
gplugin_plugin_get_state (GPluginPlugin *plugin);
Gets the current state of plugin
void gplugin_plugin_set_state (GPluginPlugin *plugin,GPluginPluginState state);
Changes the state of plugin
to state
. This function should only be called
by loaders.
The expected states of a plugin.
#define GPLUGIN_TYPE_PLUGIN (gplugin_plugin_get_type())
The standard _get_type macro for GPluginPlugin.
struct GPluginPluginInterface {
void (*state_changed)(GPluginPlugin *plugin, GPluginPluginState oldstate, GPluginPluginState newstate);
};
The interface that defines the behavior of plugins, including properties and signals.
typedef struct _GPluginPlugin GPluginPlugin;
GPluginPlugin is an opaque data structure and should not be used directly.
“filename” property“filename” char *
The absolute path to the plugin on disk.
Owner: GPluginPlugin
Flags: Read / Write / Construct Only
Default value: NULL
“info” property“info” GPluginPluginInfo *
The GPluginPluginInfo from this plugin.
Owner: GPluginPlugin
Flags: Read / Write / Construct Only
“loader” property“loader” GPluginLoader *
The GPluginLoader that loaded this plugin.
Owner: GPluginPlugin
Flags: Read / Write / Construct Only
“state” property“state” GPluginPluginState
The GPluginPluginState that this plugin is in.
Owner: GPluginPlugin
Flags: Read / Write / Construct
Default value: GPLUGIN_PLUGIN_STATE_UNKNOWN
“state-changed” signalvoid user_function (GPluginPlugin *plugin, GPluginPluginState oldstate, GPluginPluginState newstate, gpointer user_data)
Emitted when plugin
changes state.
plugin |
The GPluginPlugin that changed states. |
|
oldstate |
The old GPluginPluginState. |
|
newstate |
The new state of |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last