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: - registry (
Grl.Registry) – - plugin (
Grl.Plugin) –
- registry (
-
Grl.SourceRemoveCb(source, media, user_data, error)¶ Parameters: - source (
Grl.Source) – a source - media (
Grl.Media) – a data transfer object - user_data (
objectorNone) – user data passed toGrl.Source.remove() - error (
GLib.ErrororNone) – possibleGLib.Errorgenerated at processing
Prototype for the callback passed to
Grl.Source.remove()- source (
-
Grl.SourceResolveCb(source, operation_id, media, user_data, error)¶ Parameters: - source (
Grl.Source) – a source - operation_id (
int) – operation identifier - media (
Grl.Media) – a data transfer object - user_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().- source (
-
Grl.SourceResultCb(source, operation_id, media, remaining, user_data, error)¶ Parameters: - source (
Grl.Source) – a source - operation_id (
int) – operation identifier - media (
Grl.MediaorNone) – a data transfer object - remaining (
int) – the number of remainingGrl.Mediato process, orGrl.SOURCE_REMAINING_UNKNOWNif it is unknown - user_data (
objectorNone) – user data passed to the used method - error (
GLib.ErrororNone) – possibleGLib.Errorgenerated at processing
Prototype for the callback passed to the media sources’ methods
- source (
-
Grl.SourceStoreCb(source, media, failed_keys, user_data, error)¶ Parameters: - source (
Grl.Source) – a source - media (
Grl.Media) – aGrl.Mediatransfer object - failed_keys ([
int]) –GLib.Listof keys that could not be updated, if any - user_data (
objectorNone) – user data - error (
GLib.ErrororNone) – possibleGLib.Errorgenerated
Prototype for the callback passed to grl_source_store_foo functions
- source (