[PATCH 07/16] annotations: Added missing transfer modes



Non-basic types must be annotated with a 'transfer mode', even if it
is full, for safety reasons.
---
 src/data/grl-media.c   |    2 +-
 src/grl-media-source.c |   10 +++++-----
 src/grl-multiple.c     |    2 +-
 3 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/data/grl-media.c b/src/data/grl-media.c
index 3a255b1..6da5ab2 100644
--- a/src/data/grl-media.c
+++ b/src/data/grl-media.c
@@ -251,7 +251,7 @@ grl_media_serialize_extended (GrlMedia *media,
  *
  * Unserializes a GrlMedia.
  *
- * Returns: the GrlMedia from the serial
+ * Returns: (transfer full): the GrlMedia from the serial
  **/
 GrlMedia *
 grl_media_unserialize (const gchar *serial)
diff --git a/src/grl-media-source.c b/src/grl-media-source.c
index 71b93f8..020aa0f 100644
--- a/src/grl-media-source.c
+++ b/src/grl-media-source.c
@@ -1332,7 +1332,7 @@ grl_media_source_browse (GrlMediaSource *source,
  *
  * This method is synchronous.
  *
- * Returns: (element-type Grl.Media): a list with #GrlMedia elements
+ * Returns: (element-type Grl.Media) (transfer full): a list with #GrlMedia elements
  */
 GList *
 grl_media_source_browse_sync (GrlMediaSource *source,
@@ -1514,7 +1514,7 @@ grl_media_source_search (GrlMediaSource *source,
  *
  * This method is synchronous.
  *
- * Returns: (element-type Grl.Media): a list with #GrlMedia elements
+ * Returns: (element-type Grl.Media) (transfer full): a list with #GrlMedia elements
  */
 GList *
 grl_media_source_search_sync (GrlMediaSource *source,
@@ -1702,7 +1702,7 @@ grl_media_source_query (GrlMediaSource *source,
  *
  * This method is synchronous.
  *
- * Returns: (element-type Grl.Media): a list with #GrlMedia elements
+ * Returns: (element-type Grl.Media) (transfer full): a list with #GrlMedia elements
  */
 GList *
 grl_media_source_query_sync (GrlMediaSource *source,
@@ -1865,7 +1865,7 @@ grl_media_source_metadata (GrlMediaSource *source,
  *
  * This method is synchronous.
  *
- * Returns: the updated #GrlMedia
+ * Returns: (transfer full): the updated #GrlMedia
  */
 GrlMedia *
 grl_media_source_metadata_sync (GrlMediaSource *source,
@@ -1997,7 +1997,7 @@ grl_media_source_set_operation_data (GrlMediaSource *source,
  *
  * Obtains the previously attached data
  *
- * Returns: (allow-none): The previously attached data.
+ * Returns: (transfer none): The previously attached data.
  */
 gpointer
 grl_media_source_get_operation_data (GrlMediaSource *source,
diff --git a/src/grl-multiple.c b/src/grl-multiple.c
index befe09a..e32ed35 100644
--- a/src/grl-multiple.c
+++ b/src/grl-multiple.c
@@ -576,7 +576,7 @@ grl_multiple_cancel (guint search_id)
  *
  * This method is synchronous.
  *
- * Returns: (element-type Grl.Media): a list with #GrlMedia elements
+ * Returns: (element-type Grl.Media) (transfer full): a list with #GrlMedia elements
  */
 GList *
 grl_multiple_search_sync (const GList *sources,
-- 
1.7.0.4



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