[tracker/miner-web-review] libtracker-miner: Change proto of authenticate



commit e320786f32de218f93c9866ecda34baf498db7ef
Author: Adrien Bustany <abustany gnome org>
Date:   Tue Mar 2 12:14:49 2010 -0300

    libtracker-miner: Change proto of authenticate
    
    This commit changes the prototype of the tracker_miner_web_authenticate
    function to return void.

 src/libtracker-miner/tracker-miner-0.7.vapi |    2 +-
 src/libtracker-miner/tracker-miner-web.c    |    4 ++--
 src/libtracker-miner/tracker-miner-web.h    |    6 ++----
 3 files changed, 5 insertions(+), 7 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-miner-0.7.vapi b/src/libtracker-miner/tracker-miner-0.7.vapi
index 4011898..d44b231 100644
--- a/src/libtracker-miner/tracker-miner-0.7.vapi
+++ b/src/libtracker-miner/tracker-miner-0.7.vapi
@@ -107,7 +107,7 @@ namespace Tracker {
 	[CCode (cheader_filename = "libtracker-miner/tracker-miner-web.h")]
 	public class MinerWeb : Tracker.Miner {
 		public virtual void associate (GLib.HashTable association_data) throws Tracker.MinerWebError;
-		public virtual Tracker.MinerWebAssociationStatus authenticate () throws Tracker.MinerWebError;
+		public virtual void authenticate () throws Tracker.MinerWebError;
 		public virtual void dissociate () throws Tracker.MinerWebError;
 		public static GLib.Quark error_quark ();
 		public virtual GLib.HashTable get_association_data () throws Tracker.MinerWebError;
diff --git a/src/libtracker-miner/tracker-miner-web.c b/src/libtracker-miner/tracker-miner-web.c
index e39770e..6616416 100644
--- a/src/libtracker-miner/tracker-miner-web.c
+++ b/src/libtracker-miner/tracker-miner-web.c
@@ -221,12 +221,12 @@ tracker_miner_web_dbus_dissociate (TrackerMinerWeb        *miner,
 	}
 }
 
-TrackerMinerWebAssociationStatus
+void
 tracker_miner_web_authenticate (TrackerMinerWeb     *miner,
                                 GError             **error)
 {
 	g_assert (TRACKER_IS_MINER_WEB (miner));
-	return TRACKER_MINER_WEB_GET_CLASS (miner)->authenticate (miner, error);
+	TRACKER_MINER_WEB_GET_CLASS (miner)->authenticate (miner, error);
 }
 
 GHashTable*
diff --git a/src/libtracker-miner/tracker-miner-web.h b/src/libtracker-miner/tracker-miner-web.h
index 5e91901..048e42a 100644
--- a/src/libtracker-miner/tracker-miner-web.h
+++ b/src/libtracker-miner/tracker-miner-web.h
@@ -107,8 +107,7 @@ typedef struct {
     TrackerMinerClass parent_class;
 
     /* vmethods */
-	TrackerMinerWebAssociationStatus
-	(* authenticate)                     (TrackerMinerWeb     *miner,
+	void        (* authenticate)         (TrackerMinerWeb     *miner,
 	                                      GError             **error);
 	GHashTable* (* get_association_data) (TrackerMinerWeb     *miner,
 	                                      GError             **error);
@@ -122,8 +121,7 @@ typedef struct {
 GType        tracker_miner_web_get_type              (void) G_GNUC_CONST;
 GQuark       tracker_miner_web_error_quark           (void);
 
-TrackerMinerWebAssociationStatus
-tracker_miner_web_authenticate                       (TrackerMinerWeb     *miner,
+void         tracker_miner_web_authenticate          (TrackerMinerWeb     *miner,
                                                       GError             **error);
 GHashTable*  tracker_miner_web_get_association_data  (TrackerMinerWeb     *miner,
                                                       GError             **error);



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