mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-25 03:17:52 +02:00
GDBusConnection: Fix up g_dbus_connection_close()
... so it is async, cancelable and returns an error. Also provide a synchronous version. This is an API/ABI break but it is expected that only very few applications use this API. Signed-off-by: David Zeuthen <davidz@redhat.com>
This commit is contained in:
@@ -85,7 +85,6 @@ GDBusConnection *g_dbus_connection_new_for_address_sync (const gchar
|
||||
|
||||
void g_dbus_connection_start_message_processing (GDBusConnection *connection);
|
||||
gboolean g_dbus_connection_is_closed (GDBusConnection *connection);
|
||||
void g_dbus_connection_close (GDBusConnection *connection);
|
||||
GIOStream *g_dbus_connection_get_stream (GDBusConnection *connection);
|
||||
const gchar *g_dbus_connection_get_guid (GDBusConnection *connection);
|
||||
const gchar *g_dbus_connection_get_unique_name (GDBusConnection *connection);
|
||||
@@ -97,6 +96,19 @@ GDBusCapabilityFlags g_dbus_connection_get_capabilities (GDBusConnection
|
||||
|
||||
/* ---------------------------------------------------------------------------------------------------- */
|
||||
|
||||
void g_dbus_connection_close (GDBusConnection *connection,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
gboolean g_dbus_connection_close_finish (GDBusConnection *connection,
|
||||
GAsyncResult *res,
|
||||
GError **error);
|
||||
gboolean g_dbus_connection_close_sync (GDBusConnection *connection,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
|
||||
/* ---------------------------------------------------------------------------------------------------- */
|
||||
|
||||
void g_dbus_connection_flush (GDBusConnection *connection,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
|
Reference in New Issue
Block a user