Class

GPluginManager

since: 0.32

Description [src]

final class GPlugin.Manager : GObject.Object
{
  /* No available fields */
}

The manager is responsible for querying plugins as well as telling loaders when to load and unload plugins. It also keeps track of paths that should be searched for plugins.

Available since: 0.32

Ancestors

Functions

gplugin_manager_get_default

Gets the default plugin manager in GPlugin.

since: 0.33

Instance methods

gplugin_manager_add_app_paths

Adds the application installation path for appname.

gplugin_manager_add_default_paths

Adds the path that GPlugin was installed to to the plugin search path, as well as ${XDG_CONFIG_HOME}/gplugin so users can install additional loaders themselves.

gplugin_manager_append_path

Adds path to the end of the list of paths to search for plugins.

gplugin_manager_append_paths_from_environment

Append the paths held in the environment variable name to the list.

since: 0.37

gplugin_manager_find_plugin

Finds the first plugin matching id.

gplugin_manager_find_plugin_with_filename

Finds a plugin with the given filename.

since: 0.44

gplugin_manager_find_plugin_with_newest_version

Calls gplugin_manager_find_plugins() with id, and then returns the plugins with the highest version number or NULL if no plugins with id are found.

gplugin_manager_find_plugins

Finds all plugins matching id.

gplugin_manager_find_plugins_with_state

Finds all plugins that currently have a state of state.

gplugin_manager_find_plugins_with_version

Similar to gplugin_manager_find_plugins() but only returns plugins whose versions match op and version.

gplugin_manager_foreach

Calls func for each plugin that is known.

gplugin_manager_get_loaders

Returns a list of all registered loaders.

gplugin_manager_get_paths

Gets the list of paths which will be searched for plugins.

gplugin_manager_get_plugin_dependencies

Returns a list of all the plugins that plugin depends on.

gplugin_manager_list_plugins

Returns a list of all plugin IDs.

gplugin_manager_load_plugin

Loads plugin and all of its dependencies.

gplugin_manager_prepend_path

Adds path to the beginning of the list of paths to search for plugins.

gplugin_manager_prepend_paths_from_environment

Prepends the paths held in the environment variable name to the list.

since: 0.37

gplugin_manager_refresh

Forces a refresh of all plugins found in the search paths.

gplugin_manager_register_loader

Registers loader as an available loader.

gplugin_manager_remove_path

Removes path from the list of paths to search for plugins.

gplugin_manager_remove_paths

Clears all paths that are set to search for plugins.

gplugin_manager_unregister_loader

Unregisters loader as an available loader.

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Signals

GPlugin.Manager::load-plugin-failed

Emitted after a plugin fails to load.

since: 0.33

GPlugin.Manager::loaded-plugin

Emitted after a plugin is loaded.

since: 0.33

GPlugin.Manager::loader-registered

Emitted when loader has been registered with manager via gplugin_manager_register_loader().

since: 0.39

GPlugin.Manager::loader-unregistered

Emitted when loader has been unregistered from manager via gplugin_manager_unregister_loader().

since: 0.39

GPlugin.Manager::loading-plugin

Emitted before plugin is loaded.

since: 0.33

GPlugin.Manager::unload-plugin-failed

Emitted when manager was asked to unload plugin, but plugin returned FALSE when its unload function was called.

since: 0.33

GPlugin.Manager::unloaded-plugin

Emitted after a plugin is successfully unloaded.

since: 0.33

GPlugin.Manager::unloading-plugin

Emitted before a plugin is unloaded.

since: 0.33

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 GPluginManagerClass {
  GObjectClass parent_class;
  
}

No description available.

Class members
parent_class: GObjectClass

No description available.