Method

GPluginManagerfind_plugin

Declaration [src]

GPluginPlugin*
gplugin_manager_find_plugin (
  GPluginManager* manager,
  const gchar* id
)

Description [src]

Finds the first plugin matching id.

This function uses gplugin_manager_find_plugins() and returns the first plugin in the list.

Parameters

id

Type: 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.

Return value

Type: GPluginPlugin

A plugin instance or NULL if no plugin matching id was found.

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