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 (
objectorNone) – user data passed toGrl.Source.remove()error (
GLib.ErrororNone) – possibleGLib.Errorgenerated 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 (
objectorNone) – user data passed toGrl.Source.resolve()error (
GLib.ErrororNone) – possibleGLib.Errorgenerated 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.Mediato process, orGrl.SOURCE_REMAINING_UNKNOWNif it is unknownuser_data (
objectorNone) – user data passed to the used methoderror (
GLib.ErrororNone) – possibleGLib.Errorgenerated 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.Listof keys that could not be updated, if anyerror (
GLib.ErrororNone) – possibleGLib.Errorgenerated
Prototype for the callback passed to grl_source_store_foo functions