Method
GPluginManagerfind_plugins_with_version
Declaration [src]
GSList*
gplugin_manager_find_plugins_with_version (
GPluginManager* manager,
const char* id,
const char* op,
const char* version
)
Description [src]
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.
Parameters
id
-
Type:
const char*
The ID of the plugin to find.
The data is owned by the caller of the method. The value is a NUL terminated UTF-8 string. op
-
Type:
const char*
One of <, <=, =, ==, >=, >.
The data is owned by the caller of the method. The value is a NUL terminated UTF-8 string. version
-
Type:
const char*
The version to compare against.
The data is owned by the caller of the method. The value is a NUL terminated UTF-8 string.
Return value
Type: A list of GPluginPlugin*
A GSList
of plugins matching id
and the version constraint.
The caller of the method takes ownership of the returned data, and is responsible for freeing it. |