[gnome-photos/wip/rishi/thumbnailer: 9/15] thumbnailer-dbus: Add a Cancel method to support cancellation
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos/wip/rishi/thumbnailer: 9/15] thumbnailer-dbus: Add a Cancel method to support cancellation
- Date: Wed, 22 Feb 2017 19:37:20 +0000 (UTC)
commit 9f6d3f8ff06c5822d7df8471c28c5d3950ed7642
Author: Debarshi Ray <debarshir gnome org>
Date: Wed Feb 22 16:38:26 2017 +0100
thumbnailer-dbus: Add a Cancel method to support cancellation
Updating the thumbnails to reflect the edited state of the items
requires us to cancel ongoing thumbnailing jobs on the client-side. It
will be nice to avoid any needless I/O or CPU consumption by
propagating the cancellation to the thumbnailer process.
This Cancel method is meant to be used by ThumbnailerFactory to tell
the thumbnailer to cancel a specific GenerateThumbnail call.
https://bugzilla.gnome.org/show_bug.cgi?id=763329
src/photos-thumbnailer-dbus.xml | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/photos-thumbnailer-dbus.xml b/src/photos-thumbnailer-dbus.xml
index 6f9b30d..8a5acf1 100644
--- a/src/photos-thumbnailer-dbus.xml
+++ b/src/photos-thumbnailer-dbus.xml
@@ -24,6 +24,9 @@
<node name="/" xmlns:doc="http://www.freedesktop.org/dbus/1.0/doc.dtd">
<interface name="org.gnome.Photos.Thumbnailer">
+ <method name="Cancel">
+ <arg name="serial" type="u" direction="in" />
+ </method>
<method name="GenerateThumbnail">
<arg name="uri" type="s" direction="in" />
<arg name="mime_type" type="s" direction="in" />
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]