Callbacks

PluginDeinitFunc (plugin)

PluginRegisterKeysFunc (registry, plugin)

SourceRemoveCb (source, media, user_data, error)

SourceResolveCb (source, operation_id, media, user_data, error)

SourceResultCb (source, operation_id, media, remaining, user_data, error)

SourceStoreCb (source, media, failed_keys, user_data, error)

Details

Grl.PluginDeinitFunc(plugin)
Parameters:

plugin (Grl.Plugin) –

Grl.PluginRegisterKeysFunc(registry, plugin)
Parameters:
Grl.SourceRemoveCb(source, media, user_data, error)
Parameters:

Prototype for the callback passed to Grl.Source.remove()

Grl.SourceResolveCb(source, operation_id, media, user_data, error)
Parameters:

Prototype for the callback passed to Grl.Source.resolve(). If the URI did not resolve to a valid media record, media will be None. If there was an error during resolution, error will be set.

If media is non-None, ownership of it is transferred to the callback, and it must be freed afterwards using GObject.Object.unref().

Grl.SourceResultCb(source, operation_id, media, remaining, user_data, error)
Parameters:

Prototype for the callback passed to the media sources’ methods

Grl.SourceStoreCb(source, media, failed_keys, user_data, error)
Parameters:

Prototype for the callback passed to grl_source_store_foo functions