Class
GPluginManager
Instance methods
gplugin_manager_add_app_paths
Adds the application installation path for appname
. This will add
`prefix
/appname
/pluginsto the list as well as
${XDG_CONFIG_HOME}/appname
/plugins`.
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_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
. This is primarily used for dependency
loading where a plugin may depend on a specific range of versions of another plugin.
gplugin_manager_foreach
Calls func
for each plugin that is known.
gplugin_manager_get_loaders
Returns a list of all registered GPluginLoader
‘s.
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 GPluginPlugin
‘s that plugin
depends on.
gplugin_manager_list_plugins
Returns a GList
of all plugin id’s. Each id should be queried directly
for more information.
gplugin_manager_load_plugin
Loads plugin
and all of its dependencies. If a dependency can not be
loaded, plugin
will not be loaded either. However, any other plugins that
plugin
depends on that were loaded from this call, will not be unloaded.
gplugin_manager_prepend_path
Adds path
to the beginning of the list of paths to search for plugins.
gplugin_manager_refresh
Forces a refresh of all plugins found in the search paths.
gplugin_manager_register_loader
Registers type
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
. If plugin
has dependencies, they are not unloaded.
gplugin_manager_unregister_loader
Unregisters type
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.
Class structure
struct GPluginManagerClass {
gboolean (* loading_plugin) (
GPluginManager* manager,
GPluginPlugin* plugin,
GError** error
);
void (* loaded_plugin) (
GPluginManager* manager,
GPluginPlugin* plugin
);
void (* load_failed) (
GPluginManager* manager,
GPluginPlugin* plugin
);
gboolean (* unloading_plugin) (
GPluginManager* manager,
GPluginPlugin* plugin,
GError** error
);
void (* unloaded_plugin) (
GPluginManager* manager,
GPluginPlugin* plugin
);
void (* unload_plugin_failed) (
GPluginManager* manager,
GPluginPlugin* plugin
);
}
Class members
loading_plugin |
|
No description available. | |
loaded_plugin |
|
No description available. | |
load_failed |
|
No description available. | |
unloading_plugin |
|
No description available. | |
unloaded_plugin |
|
No description available. | |
unload_plugin_failed |
|
No description available. |