Fix gdbus connection annotations
authorThomas Bechtold <thomasbechtold@jpberlin.de>
Tue, 11 Sep 2012 05:45:24 +0000 (07:45 +0200)
committerRichard Hughes <richard@hughsie.com>
Tue, 11 Sep 2012 12:16:32 +0000 (13:16 +0100)
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

index afc4ed4..f4c63a9 100644 (file)
@@ -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.