[glib] GDBusMethodInvocation: fix introspection annotations



commit 53dc341b0d769905ffdde5f631942b20dfe09bf6
Author: Giovanni Campagna <gcampagna src gnome org>
Date:   Tue May 3 18:54:45 2011 +0200

    GDBusMethodInvocation: fix introspection annotations
    
    In particular (transfer full), to avoid a refcounting bug and a
    segmentation fault.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=646635

 gio/gdbusmethodinvocation.c |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/gio/gdbusmethodinvocation.c b/gio/gdbusmethodinvocation.c
index 048319d..c3daf91 100644
--- a/gio/gdbusmethodinvocation.c
+++ b/gio/gdbusmethodinvocation.c
@@ -337,8 +337,8 @@ _g_dbus_method_invocation_new (const gchar           *sender,
 
 /**
  * g_dbus_method_invocation_return_value:
- * @invocation: A #GDBusMethodInvocation.
- * @parameters: A #GVariant tuple with out parameters for the method or %NULL if not passing any parameters.
+ * @invocation: (transfer full): A #GDBusMethodInvocation.
+ * @parameters: (allow-none): A #GVariant tuple with out parameters for the method or %NULL if not passing any parameters.
  *
  * Finishes handling a D-Bus method call by returning @parameters.
  * If the @parameters GVariant is floating, it is consumed.
@@ -417,7 +417,7 @@ g_dbus_method_invocation_return_value (GDBusMethodInvocation *invocation,
 
 /**
  * g_dbus_method_invocation_return_error:
- * @invocation: A #GDBusMethodInvocation.
+ * @invocation: (transfer full): A #GDBusMethodInvocation.
  * @domain: A #GQuark for the #GError error domain.
  * @code: The error code.
  * @format: printf()-style format.
@@ -464,7 +464,7 @@ g_dbus_method_invocation_return_error (GDBusMethodInvocation *invocation,
 
 /**
  * g_dbus_method_invocation_return_error_valist:
- * @invocation: A #GDBusMethodInvocation.
+ * @invocation: (transfer full): A #GDBusMethodInvocation.
  * @domain: A #GQuark for the #GError error domain.
  * @code: The error code.
  * @format: printf()-style format.
@@ -499,7 +499,7 @@ g_dbus_method_invocation_return_error_valist (GDBusMethodInvocation *invocation,
 
 /**
  * g_dbus_method_invocation_return_error_literal:
- * @invocation: A #GDBusMethodInvocation.
+ * @invocation: (transfer full): A #GDBusMethodInvocation.
  * @domain: A #GQuark for the #GError error domain.
  * @code: The error code.
  * @message: The error message.
@@ -528,7 +528,7 @@ g_dbus_method_invocation_return_error_literal (GDBusMethodInvocation *invocation
 
 /**
  * g_dbus_method_invocation_return_gerror:
- * @invocation: A #GDBusMethodInvocation.
+ * @invocation: (transfer full): A #GDBusMethodInvocation.
  * @error: A #GError.
  *
  * Like g_dbus_method_invocation_return_error() but takes a #GError
@@ -557,7 +557,7 @@ g_dbus_method_invocation_return_gerror (GDBusMethodInvocation *invocation,
 
 /**
  * g_dbus_method_invocation_return_dbus_error:
- * @invocation: A #GDBusMethodInvocation.
+ * @invocation: (transfer full): A #GDBusMethodInvocation.
  * @error_name: A valid D-Bus error name.
  * @error_message: A valid D-Bus error message.
  *



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