Method

GPluginManagerfind_plugins_with_version

Declaration [src]

GSList*
gplugin_manager_find_plugins_with_version (
  GPluginManager* manager,
  const gchar* id,
  const gchar* op,
  const gchar* 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 const gchar*
 

The ID of the plugin to find.

 The data is owned by the caller of the function.
 The value is a NUL terminated UTF-8 string.
op const gchar*
 

One of <, <=, =, ==, >=, >.

 The data is owned by the caller of the function.
 The value is a NUL terminated UTF-8 string.
version const gchar*
 

The version to compare against.

 The data is owned by the caller of the function.
 The value is a NUL terminated UTF-8 string.

Return value

Returns: A list of GPluginPlugin*
 

A GSList of plugins matching id and the version constraint.

 The caller of the method takes ownership of the data, and is responsible for freeing it.