summaryrefslogtreecommitdiff
path: root/src/lib/image_proxy.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/image_proxy.cc')
-rw-r--r--src/lib/image_proxy.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/image_proxy.cc b/src/lib/image_proxy.cc
index c803e6bd0..0b079725d 100644
--- a/src/lib/image_proxy.cc
+++ b/src/lib/image_proxy.cc
@@ -46,3 +46,9 @@ image_proxy_factory (shared_ptr<cxml::Node> xml, shared_ptr<Socket> socket)
throw NetworkError (_("Unexpected image type received by server"));
}
+
+bool
+ImageProxy::same (shared_ptr<const ImageProxy> other) const
+{
+ return image()->digest() == other->image()->digest();
+}