From c9a3cd6d8b3a0ad35b289a862b23e14a9bc59ed5 Mon Sep 17 00:00:00 2001 From: Thomas Bechtold Date: Tue, 11 Sep 2012 07:45:24 +0200 Subject: [PATCH] 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 --- gio/gdbusconnection.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gio/gdbusconnection.c b/gio/gdbusconnection.c index afc4ed49f..f4c63a9c3 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.