[gi] Add missing Gio transfer annotations

This commit is contained in:
Martin Pitt 2011-08-11 11:36:22 +02:00
parent 0e54825120
commit 782f839383
7 changed files with 10 additions and 8 deletions

View 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
*/

View 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)

View 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
*/

View 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
*/

View 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
*/

View 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
*/

View 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
*/