[tracker/introspection: 8/19] libtracker-miner: Add (transfer x) annotation to some methods



commit 5bd68c5e566238e5ecf504ec2568580dbfe00f68
Author: Ivan Frade <ivan frade nokia com>
Date:   Thu Mar 24 14:58:54 2011 +0200

    libtracker-miner: Add (transfer x) annotation to some methods
    
    g-ir-scanner was warning the lack of those annotations

 src/libtracker-miner/tracker-miner-manager.c |    4 ++--
 src/libtracker-miner/tracker-miner-object.c  |    4 ++--
 src/libtracker-miner/tracker-miner-web.c     |    2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-miner-manager.c b/src/libtracker-miner/tracker-miner-manager.c
index dc7468c..46e483c 100644
--- a/src/libtracker-miner/tracker-miner-manager.c
+++ b/src/libtracker-miner/tracker-miner-manager.c
@@ -620,7 +620,7 @@ tracker_miner_manager_new_full (gboolean   auto_start,
  * Returns a list of references for all active miners. Active miners
  * are miners which are running within a process.
  *
- * Returns: a #GSList which must be freed with g_slist_free() and all
+ * Returns: (transfer full): a #GSList which must be freed with g_slist_free() and all
  * contained data with g_free(). Otherwise %NULL is returned if there
  * are no miners.
  *
@@ -798,7 +798,7 @@ initialize_miners_data (TrackerMinerManager *manager)
  * miners are miners which may or may not be running in a process at
  * the current time.
  *
- * Returns: a #GSList which must be freed with g_slist_free() and all
+ * Returns: (transfer full): a #GSList which must be freed with g_slist_free() and all
  * contained data with g_free(). Otherwise %NULL is returned if there
  * are no miners.
  *
diff --git a/src/libtracker-miner/tracker-miner-object.c b/src/libtracker-miner/tracker-miner-object.c
index 8db1067..ef17003 100644
--- a/src/libtracker-miner/tracker-miner-object.c
+++ b/src/libtracker-miner/tracker-miner-object.c
@@ -905,7 +905,7 @@ tracker_miner_resume (TrackerMiner  *miner,
  *
  * Gets the #TrackerSparqlConnection initialized by @miner
  *
- * Returns: a #TrackerSparqlConnection.
+ * Returns: (transfer none): a #TrackerSparqlConnection.
  *
  * Since: 0.10
  **/
@@ -921,7 +921,7 @@ tracker_miner_get_connection (TrackerMiner *miner)
  *
  * Gets the #GDBusConnection initialized by @miner
  *
- * Returns: a #GDBusConnection.
+ * Returns: (transfer none): a #GDBusConnection.
  *
  * Since: 0.10
  **/
diff --git a/src/libtracker-miner/tracker-miner-web.c b/src/libtracker-miner/tracker-miner-web.c
index c61d230..5617973 100644
--- a/src/libtracker-miner/tracker-miner-web.c
+++ b/src/libtracker-miner/tracker-miner-web.c
@@ -514,7 +514,7 @@ tracker_miner_web_authenticate (TrackerMinerWeb  *miner,
  * of authentication. See <classname>TrackerMinerWebClass</classname>
  * for more information.
  *
- * Returns: a %GHashTable with the data. On failure @error will be set
+ * Returns: (transfer full): a %GHashTable with the data. On failure @error will be set
  * and %NULL will be returned.
  *
  * Since: 0.8



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