diff options
author | Tomas Bzatek <tbzatek@redhat.com> | 2012-06-15 17:24:42 +0200 |
---|---|---|
committer | Tomas Bzatek <tbzatek@redhat.com> | 2012-07-31 11:59:37 +0200 |
commit | 89a881c5bf8fcbaf027e276a302aefc11f8fca34 (patch) | |
tree | 3b6fbd0f38d0e657d1988b4139f84148097fd4ce /client/gvfsdaemondbus.h | |
parent | 36635d44502b5c4e8f7e1341ad9ec912bb822e0d (diff) | |
download | gvfs-89a881c5bf8fcbaf027e276a302aefc11f8fca34.tar.gz |
gdbus: Make cancellation work
This mimics the old behaviour and works for sync and async.
Requires new glib for g_dbus_connection_get_last_serial().
Diffstat (limited to 'client/gvfsdaemondbus.h')
-rw-r--r-- | client/gvfsdaemondbus.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/client/gvfsdaemondbus.h b/client/gvfsdaemondbus.h index d1cd6660..eedf1d8b 100644 --- a/client/gvfsdaemondbus.h +++ b/client/gvfsdaemondbus.h @@ -64,6 +64,12 @@ void _g_simple_async_result_complete_with_cancellable (GSimpleAsyncResult *result, GCancellable *cancellable); +gulong _g_dbus_async_subscribe_cancellable (GDBusConnection *connection, + GCancellable *cancellable); +void _g_dbus_async_unsubscribe_cancellable (GCancellable *cancellable, + gulong cancelled_tag); +void _g_dbus_send_cancelled_sync (GDBusConnection *connection); + G_END_DECLS #endif /* __G_VFS_DAEMON_DBUS_H__ */ |