[glib] [gi] Add missing Gio transfer annotations



commit 782f83938395c0ac57198ec081e9566c170ef8ef
Author: Martin Pitt <martin pitt ubuntu com>
Date:   Thu Aug 11 11:36:22 2011 +0200

    [gi] Add missing Gio transfer annotations

 gio/gdbusproxy.c           |    5 +++--
 gio/gtimezonemonitor.c     |    2 +-
 gio/gtlsbackend.c          |    3 ++-
 gio/gtlsclientconnection.c |    2 +-
 gio/gtlsconnection.c       |    2 +-
 gio/gtlsfiledatabase.c     |    2 +-
 gio/gtlsserverconnection.c |    2 +-
 7 files changed, 10 insertions(+), 8 deletions(-)
---
diff --git a/gio/gdbusproxy.c b/gio/gdbusproxy.c
index c332059..4a321f7 100644
--- a/gio/gdbusproxy.c
+++ b/gio/gdbusproxy.c
@@ -632,8 +632,9 @@ property_name_sort_func (const gchar **a,
  *
  * Gets the names of all cached properties on @proxy.
  *
- * Returns: A %NULL-terminated array of strings or %NULL if @proxy has
- * no cached properties. Free the returned array with g_strfreev().
+ * Returns: (transfer full): A %NULL-terminated array of strings or %NULL if
+ *          @proxy has no cached properties. Free the returned array with
+ *          g_strfreev().
  *
  * Since: 2.26
  */
diff --git a/gio/gtimezonemonitor.c b/gio/gtimezonemonitor.c
index b95c9fa..36c1ffc 100644
--- a/gio/gtimezonemonitor.c
+++ b/gio/gtimezonemonitor.c
@@ -136,7 +136,7 @@ g_time_zone_monitor_class_init (GTimeZoneMonitorClass *class)
  * signals via the default #GMainContext.  There is no way to create an
  * instance that will dispatch signals using a different context.
  *
- * Returns: a reference to the #GTimeZoneMonitor.
+ * Returns: (transfer full): a reference to the #GTimeZoneMonitor.
  **/
 GTimeZoneMonitor *
 g_time_zone_monitor_get (void)
diff --git a/gio/gtlsbackend.c b/gio/gtlsbackend.c
index 6cd0e4d..13fff17 100644
--- a/gio/gtlsbackend.c
+++ b/gio/gtlsbackend.c
@@ -155,7 +155,8 @@ g_tls_backend_supports_tls (GTlsBackend *backend)
  *
  * Gets the default #GTlsDatabase used to verify TLS connections.
  *
- * Return value: the default database, which should be unreffed when done.
+ * Return value: (transfer full): the default database, which should be
+ *               unreffed when done.
  *
  * Since: 2.30
  */
diff --git a/gio/gtlsclientconnection.c b/gio/gtlsclientconnection.c
index f0f097b..a3d0030 100644
--- a/gio/gtlsclientconnection.c
+++ b/gio/gtlsclientconnection.c
@@ -153,7 +153,7 @@ g_tls_client_connection_default_init (GTlsClientConnectionInterface *iface)
  * must have pollable input and output streams) which is assumed to
  * communicate with the server identified by @server_identity.
  *
- * Return value: the new #GTlsClientConnection, or %NULL on error
+ * Return value: (transfer full): the new #GTlsClientConnection, or %NULL on error
  *
  * Since: 2.28
  */
diff --git a/gio/gtlsconnection.c b/gio/gtlsconnection.c
index 5a8441e..5e66dd1 100644
--- a/gio/gtlsconnection.c
+++ b/gio/gtlsconnection.c
@@ -414,7 +414,7 @@ g_tls_connection_set_database (GTlsConnection *conn,
  * Gets the certificate database that @conn uses to verify
  * peer certificates. See g_tls_connection_set_database().
  *
- * Return value: the certificate database that @conn uses or %NULL
+ * Return value: (transfer none): the certificate database that @conn uses or %NULL
  *
  * Since: 2.30
  */
diff --git a/gio/gtlsfiledatabase.c b/gio/gtlsfiledatabase.c
index 0c59722..6e6a5c4 100644
--- a/gio/gtlsfiledatabase.c
+++ b/gio/gtlsfiledatabase.c
@@ -84,7 +84,7 @@ g_tls_file_database_default_init (GTlsFileDatabaseInterface *iface)
  *
  * The certificates in @anchors must be PEM encoded.
  *
- * Return value: the new #GTlsFileDatabase, or %NULL on error
+ * Return value: (transfer full): the new #GTlsFileDatabase, or %NULL on error
  *
  * Since: 2.30
  */
diff --git a/gio/gtlsserverconnection.c b/gio/gtlsserverconnection.c
index d42fb95..de08937 100644
--- a/gio/gtlsserverconnection.c
+++ b/gio/gtlsserverconnection.c
@@ -73,7 +73,7 @@ g_tls_server_connection_default_init (GTlsServerConnectionInterface *iface)
  * Creates a new #GTlsServerConnection wrapping @base_io_stream (which
  * must have pollable input and output streams).
  *
- * Return value: the new #GTlsServerConnection, or %NULL on error
+ * Return value: (transfer full): the new #GTlsServerConnection, or %NULL on error
  *
  * Since: 2.28
  */



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