[libsoup] Fix (transfer) annotations on some non-transfer-full getters



commit 21fbc17b56ddc3b5b2ca6a9fdeef4af90bc9d5af
Author: Dan Winship <danw gnome org>
Date:   Wed Jun 9 09:35:25 2010 -0400

    Fix (transfer) annotations on some non-transfer-full getters
    
    https://bugzilla.gnome.org/show_bug.cgi?id=621021

 libsoup/soup-auth.c    |    5 +++--
 libsoup/soup-cookie.c  |    4 ++--
 libsoup/soup-message.c |    6 +++---
 libsoup/soup-session.c |   15 ++++++++-------
 4 files changed, 16 insertions(+), 14 deletions(-)
---
diff --git a/libsoup/soup-auth.c b/libsoup/soup-auth.c
index e50b89a..8b4e52b 100644
--- a/libsoup/soup-auth.c
+++ b/libsoup/soup-auth.c
@@ -555,8 +555,9 @@ soup_auth_free_protection_space (SoupAuth *auth, GSList *space)
  * (If the session is not configured to save passwords, this will
  * always be %NULL.)
  *
- * Return value: the list of usernames. You must free the list with
- * g_slist_free(), but do not free or modify the contents.
+ * Return value: (transfer container): the list of usernames. You must
+ * free the list with g_slist_free(), but do not free or modify the
+ * contents.
  *
  * Since: 2.28
  **/
diff --git a/libsoup/soup-cookie.c b/libsoup/soup-cookie.c
index 06a873b..19fbf66 100644
--- a/libsoup/soup-cookie.c
+++ b/libsoup/soup-cookie.c
@@ -630,8 +630,8 @@ soup_cookie_set_max_age (SoupCookie *cookie, int max_age)
  *
  * Gets @cookie's expiration time
  *
- * Return value: @cookie's expiration time, which is owned
- * by @cookie and should not be modified or freed.
+ * Return value: (transfer none): @cookie's expiration time, which is
+ * owned by @cookie and should not be modified or freed.
  *
  * Since: 2.32
  **/
diff --git a/libsoup/soup-message.c b/libsoup/soup-message.c
index b25a143..93969fd 100644
--- a/libsoup/soup-message.c
+++ b/libsoup/soup-message.c
@@ -1533,7 +1533,7 @@ soup_message_set_uri (SoupMessage *msg, SoupURI *uri)
  *
  * Gets @msg's URI
  *
- * Return value: the URI @msg is targeted for.
+ * Return value: (transfer none): the URI @msg is targeted for.
  **/
 SoupURI *
 soup_message_get_uri (SoupMessage *msg)
@@ -1551,7 +1551,7 @@ soup_message_get_uri (SoupMessage *msg)
  * URI on a message, this will be unresolved, although the message's
  * session will resolve it before sending the message.
  *
- * Return value: the address @msg's URI points to
+ * Return value: (transfer none): the address @msg's URI points to
  *
  * Since: 2.26
  **/
@@ -1766,7 +1766,7 @@ soup_message_disables_feature (SoupMessage *msg, gpointer feature)
  * soup_message_get_first_party:
  * @msg: a #SoupMessage
  * 
- * Returns: the @msg's first party #SoupURI
+ * Returns: (transfer none): the @msg's first party #SoupURI
  * 
  * Since: 2.30
  **/
diff --git a/libsoup/soup-session.c b/libsoup/soup-session.c
index 1d5e6f5..287d643 100644
--- a/libsoup/soup-session.c
+++ b/libsoup/soup-session.c
@@ -1001,7 +1001,8 @@ get_property (GObject *object, guint prop_id,
  * context, so you will need to ref it yourself if you want it to
  * outlive its session.
  *
- * Return value: @session's #GMainContext, which may be %NULL
+ * Return value: (transfer none): @session's #GMainContext, which may
+ * be %NULL
  **/
 GMainContext *
 soup_session_get_async_context (SoupSession *session)
@@ -1955,8 +1956,8 @@ restart:
  * you want to see all features, you can pass %G_TYPE_SESSION_FEATURE
  * for @feature_type.)
  *
- * Return value: a list of features. You must free the list, but not
- * its contents
+ * Return value: (transfer container): a list of features. You must
+ * free the list, but not its contents
  *
  * Since: 2.26
  **/
@@ -1985,8 +1986,8 @@ soup_session_get_features (SoupSession *session, GType feature_type)
  * features where there may be more than one feature of a given type,
  * use soup_session_get_features().
  *
- * Return value: a #SoupSessionFeature, or %NULL. The feature is owned
- * by @session.
+ * Return value: (transfer none): a #SoupSessionFeature, or %NULL. The
+ * feature is owned by @session.
  *
  * Since: 2.26
  **/
@@ -2032,8 +2033,8 @@ soup_session_get_feature (SoupSession *session, GType feature_type)
  * disabled on @msg, and the second is not, then this will return
  * %NULL, not the second feature.
  *
- * Return value: a #SoupSessionFeature, or %NULL. The feature is owned
- * by @session.
+ * Return value: (transfer none): a #SoupSessionFeature, or %NULL. The
+ * feature is owned by @session.
  *
  * Since: 2.28
  **/



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