[gi] Add missing Gio transfer annotations
authorMartin Pitt <martin.pitt@ubuntu.com>
Thu, 11 Aug 2011 09:36:22 +0000 (11:36 +0200)
committerMartin Pitt <martin.pitt@ubuntu.com>
Thu, 11 Aug 2011 09:38:20 +0000 (11:38 +0200)
gio/gdbusproxy.c
gio/gtimezonemonitor.c
gio/gtlsbackend.c
gio/gtlsclientconnection.c
gio/gtlsconnection.c
gio/gtlsfiledatabase.c
gio/gtlsserverconnection.c

index c332059..4a321f7 100644 (file)
@@ -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
  */
index b95c9fa..36c1ffc 100644 (file)
@@ -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)
index 6cd0e4d..13fff17 100644 (file)
@@ -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
  */
index f0f097b..a3d0030 100644 (file)
@@ -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
  */
index 5a8441e..5e66dd1 100644 (file)
@@ -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
  */
index 0c59722..6e6a5c4 100644 (file)
@@ -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
  */
index d42fb95..de08937 100644 (file)
@@ -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
  */