tracker r1351 - branches/indexer-split/src/trackerd



Author: pvanhoof
Date: Tue May  6 10:15:35 2008
New Revision: 1351
URL: http://svn.gnome.org/viewvc/tracker?rev=1351&view=rev

Log:
Referencing

Modified:
   branches/indexer-split/src/trackerd/tracker-xesam-session.c
   branches/indexer-split/src/trackerd/tracker-xesam-session.h

Modified: branches/indexer-split/src/trackerd/tracker-xesam-session.c
==============================================================================
--- branches/indexer-split/src/trackerd/tracker-xesam-session.c	(original)
+++ branches/indexer-split/src/trackerd/tracker-xesam-session.c	Tue May  6 10:15:35 2008
@@ -47,12 +47,14 @@
  * an integer, a boolean or an array (either TRACKER_XESAM_TYPE_STRV_ARRAY or 
  * G_TYPE_STRV).
  *
- * returns: a read-only hash-table with Xesam properties
+ * The returned value must be unreferenced using @g_hash_table_unref.
+ *
+ * returns (caller-owns): a read-only hash-table with Xesam properties
  **/
-const GHashTable *
+GHashTable *
 tracker_xesam_session_get_props (TrackerXesamSession *self)
 {
-	return (const GHashTable *) self->priv->props;
+	return g_hash_table_ref (self->priv->props);
 }
 
 static void

Modified: branches/indexer-split/src/trackerd/tracker-xesam-session.h
==============================================================================
--- branches/indexer-split/src/trackerd/tracker-xesam-session.h	(original)
+++ branches/indexer-split/src/trackerd/tracker-xesam-session.h	Tue May  6 10:15:35 2008
@@ -76,7 +76,7 @@
 const gchar*            tracker_xesam_session_get_id        (TrackerXesamSession  *self);
 TrackerXesamSession*    tracker_xesam_session_new           (void);
 GType                   tracker_xesam_session_get_type      (void);
-const GHashTable*       tracker_xesam_session_get_props     (TrackerXesamSession *self);
+GHashTable*             tracker_xesam_session_get_props     (TrackerXesamSession *self);
 
 G_END_DECLS
 



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