Class
GPluginManager
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.0 |
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.
Available since: 0.37.0
gplugin_manager_find_plugin
Finds the first plugin matching id
.
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.
Available since: 0.37.0
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_unload_plugin
Unloads plugin
.
gplugin_manager_unregister_loader
Unregisters loader
as an available loader.
Signals
GPlugin.Manager::load-plugin-failed
Emitted after a plugin fails to load.
GPlugin.Manager::loaded-plugin
Emitted after a plugin is loaded.
GPlugin.Manager::loading-plugin
Emitted before plugin
is loaded.
GPlugin.Manager::unload-plugin-failed
Emitted when manager
was asked to unload plugin
, but plugin
returned
FALSE
when its unload function was called.
GPlugin.Manager::unloaded-plugin
Emitted after a plugin is successfully unloaded.
GPlugin.Manager::unloading-plugin
Emitted before a plugin is unloaded.
Signals inherited from GObject (1)
GObject.Object::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.