[grilo] core: Added GError parameter to grl_plugin_registry_register_source.



commit 147942a7334c83cabeb6bc843cfda291d341cfc7
Author: Iago Toral Quiroga <itoral igalia com>
Date:   Mon Dec 20 08:26:19 2010 +0100

    core: Added GError parameter to grl_plugin_registry_register_source.

 src/grl-plugin-registry.c |    6 ++++--
 src/grl-plugin-registry.h |    3 ++-
 2 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/src/grl-plugin-registry.c b/src/grl-plugin-registry.c
index 84337a6..06f9807 100644
--- a/src/grl-plugin-registry.c
+++ b/src/grl-plugin-registry.c
@@ -292,15 +292,17 @@ grl_plugin_registry_get_default (void)
  * @registry: the registry instance
  * @plugin: the descriptor of the plugin which owns the source
  * @source: the source to register
+ * @error: error return location or @NULL to ignore
  *
  * Register a @source in the @registry with the given @plugin information
  *
- * Returns: %TRUE if success
+ * Returns: %TRUE if success, %FALSE% otherwise.
  */
 gboolean
 grl_plugin_registry_register_source (GrlPluginRegistry *registry,
                                      const GrlPluginInfo *plugin,
-                                     GrlMediaPlugin *source)
+                                     GrlMediaPlugin *source,
+                                     GError **error)
 {
   gchar *id;
 
diff --git a/src/grl-plugin-registry.h b/src/grl-plugin-registry.h
index 5d53fad..a3e7c68 100644
--- a/src/grl-plugin-registry.h
+++ b/src/grl-plugin-registry.h
@@ -206,7 +206,8 @@ gboolean grl_plugin_registry_load_all (GrlPluginRegistry *registry);
 
 gboolean grl_plugin_registry_register_source (GrlPluginRegistry *registry,
                                               const GrlPluginInfo *plugin,
-                                              GrlMediaPlugin *source);
+                                              GrlMediaPlugin *source,
+					      GError **error);
 
 void grl_plugin_registry_unregister_source (GrlPluginRegistry *registry,
                                             GrlMediaPlugin *source);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]