From 782f83938395c0ac57198ec081e9566c170ef8ef Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Thu, 11 Aug 2011 11:36:22 +0200 Subject: [PATCH] [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 c3320595d..4a321f739 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 b95c9fa93..36c1ffc63 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 6cd0e4dae..13fff178a 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 f0f097b23..a3d0030fd 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 5a8441e49..5e66dd1b6 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 0c5972239..6e6a5c454 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 d42fb9585..de0893729 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 */