diff options
author | David Zeuthen <davidz@redhat.com> | 2010-07-07 15:00:23 -0400 |
---|---|---|
committer | David Zeuthen <davidz@redhat.com> | 2010-07-07 15:03:03 -0400 |
commit | 62a1ccf526e7b23ac39cdf7251eac5706eef3f57 (patch) | |
tree | 613b12bc60a3f145a5495862fa2b7075b5f2b1c3 /gio/gdbusconnection.h | |
parent | d4f35ae9ed230ccc04b8f50067a0d0dda95b7d5f (diff) |
Bug 618882 – No way to ensure that a message is sent
Add g_dbus_connection_flush{_finish,sync}().
https://bugzilla.gnome.org/show_bug.cgi?id=618882
Signed-off-by: David Zeuthen <davidz@redhat.com>
Diffstat (limited to 'gio/gdbusconnection.h')
-rw-r--r-- | gio/gdbusconnection.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gio/gdbusconnection.h b/gio/gdbusconnection.h index 36c03c657..f422ccc2b 100644 --- a/gio/gdbusconnection.h +++ b/gio/gdbusconnection.h @@ -139,6 +139,20 @@ gboolean g_dbus_connection_get_exit_on_close (GDBusConnection void g_dbus_connection_set_exit_on_close (GDBusConnection *connection, gboolean exit_on_close); GDBusCapabilityFlags g_dbus_connection_get_capabilities (GDBusConnection *connection); + +/* ---------------------------------------------------------------------------------------------------- */ + +void g_dbus_connection_flush (GDBusConnection *connection, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); +gboolean g_dbus_connection_flush_finish (GDBusConnection *connection, + GAsyncResult *res, + GError **error); +gboolean g_dbus_connection_flush_sync (GDBusConnection *connection, + GCancellable *cancellable, + GError **error); + /* ---------------------------------------------------------------------------------------------------- */ gboolean g_dbus_connection_send_message (GDBusConnection *connection, |