Callbacks¶
|
|
|
|
|
|
|
|
|
|
|
Details¶
- Grl.PluginDeinitFunc(plugin)¶
- Parameters:
plugin (
Grl.Plugin
) –
- Grl.PluginRegisterKeysFunc(registry, plugin)¶
- Parameters:
registry (
Grl.Registry
) –plugin (
Grl.Plugin
) –
- Grl.SourceRemoveCb(source, media, user_data, error)¶
- Parameters:
source (
Grl.Source
) – a sourcemedia (
Grl.Media
) – a data transfer objectuser_data (
object
orNone
) – user data passed toGrl.Source.remove
()error (
GLib.Error
orNone
) – possibleGLib.Error
generated at processing
Prototype for the callback passed to
Grl.Source.remove
()
- Grl.SourceResolveCb(source, operation_id, media, user_data, error)¶
- Parameters:
source (
Grl.Source
) – a sourceoperation_id (
int
) – operation identifiermedia (
Grl.Media
) – a data transfer objectuser_data (
object
orNone
) – user data passed toGrl.Source.resolve
()error (
GLib.Error
orNone
) – possibleGLib.Error
generated at processing
Prototype for the callback passed to
Grl.Source.resolve
(). If the URI did not resolve to a valid media record, media will beNone
. 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 usingGObject.Object.unref
().
- Grl.SourceResultCb(source, operation_id, media, remaining, user_data, error)¶
- Parameters:
source (
Grl.Source
) – a sourceoperation_id (
int
) – operation identifierremaining (
int
) – the number of remainingGrl.Media
to process, orGrl.SOURCE_REMAINING_UNKNOWN
if it is unknownuser_data (
object
orNone
) – user data passed to the used methoderror (
GLib.Error
orNone
) – possibleGLib.Error
generated at processing
Prototype for the callback passed to the media sources’ methods
- Grl.SourceStoreCb(source, media, failed_keys, user_data, error)¶
- Parameters:
source (
Grl.Source
) – a sourcefailed_keys ([
int
]) –GLib.List
of keys that could not be updated, if anyerror (
GLib.Error
orNone
) – possibleGLib.Error
generated
Prototype for the callback passed to grl_source_store_foo functions