[glib] Fix gdbus connection annotations



commit c9a3cd6d8b3a0ad35b289a862b23e14a9bc59ed5
Author: Thomas Bechtold <thomasbechtold jpberlin de>
Date:   Tue Sep 11 07:45:24 2012 +0200

    Fix gdbus connection annotations
    
    g_dbus_connection_call_with_unix_fd_list_sync () and
    g_dbus_connection_call_sync () should allow None for the
    bus_name parameter.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=683771
    
    Signed-off-by: Richard Hughes <richard hughsie com>

 gio/gdbusconnection.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/gio/gdbusconnection.c b/gio/gdbusconnection.c
index afc4ed4..f4c63a9 100644
--- a/gio/gdbusconnection.c
+++ b/gio/gdbusconnection.c
@@ -5718,7 +5718,8 @@ g_dbus_connection_call_finish (GDBusConnection  *connection,
 /**
  * g_dbus_connection_call_sync:
  * @connection: A #GDBusConnection.
- * @bus_name: A unique or well-known bus name.
+ * @bus_name: (allow-none): A unique or well-known bus name or %NULL if
+ *            @connection is not a message bus connection.
  * @object_path: Path of remote object.
  * @interface_name: D-Bus interface to invoke method on.
  * @method_name: The name of the method to invoke.
@@ -5864,7 +5865,8 @@ g_dbus_connection_call_with_unix_fd_list_finish (GDBusConnection  *connection,
 /**
  * g_dbus_connection_call_with_unix_fd_list_sync:
  * @connection: A #GDBusConnection.
- * @bus_name: A unique or well-known bus name.
+ * @bus_name: (allow-none): A unique or well-known bus name or %NULL if
+ *            @connection is not a message bus connection.
  * @object_path: Path of remote object.
  * @interface_name: D-Bus interface to invoke method on.
  * @method_name: The name of the method to invoke.



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