Method

GrlRegistryload_plugin_from_desc

since: 0.3.0

Declaration [src]

gboolean
grl_registry_load_plugin_from_desc (
  GrlRegistry* registry,
  GrlPluginDescriptor* plugin_desc,
  GError** error
)

Description [src]

Loads the grilo plugin defined by plugin_desc. This is used to load plugins that aren’t shared libraries, and are built into applications.

Minimal example for loading a builtin plugin, in C. static GrlPluginDescriptor descriptor = { .plugin_id = “grl-example”, .plugin_init = grl_example_plugin_init, };

grl_registry_load_plugin_from_desc (registry, &descriptor, &error);

Available since: 0.3.0

This method is not directly available to language bindings.

Parameters

plugin_desc

Type: GrlPluginDescriptor

The GrlPluginDescriptor for the plugin.

The data is owned by the caller of the method.
error

Type: GError **

The return location for a recoverable error.

The argument can be NULL.
If the return location is not NULL, then you must initialize it to a NULL GError*.
The argument will be left initialized to NULL by the method if there are no errors.
In case of error, the argument will be set to a newly allocated GError; the caller will take ownership of the data, and be responsible for freeing it.

Return value

Type: gboolean

TRUE if the plugin is initialised correctly.