summaryrefslogtreecommitdiff
path: root/src/Checksum.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2011-07-27 19:32:35 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2011-07-27 19:32:35 +0900
commit67e91c3431a4c89a76093e33cd121f89f5550fb7 (patch)
tree50f6035024bd43716bf19a5e30c720bee5197e40 /src/Checksum.h
parent7c317de4e74a73e8ce55585f69bba6d4db5e6899 (diff)
HttpResponse::getDigest() now returns all Digest.
In addition, HttpResponse::getMetalinkHttpEntries() does not check validity of URI. It is checked when we add it to FileEntry.
Diffstat (limited to 'src/Checksum.h')
-rw-r--r--src/Checksum.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/Checksum.h b/src/Checksum.h
index a800111e..ea198733 100644
--- a/src/Checksum.h
+++ b/src/Checksum.h
@@ -64,6 +64,15 @@ public:
{
return algo_;
}
+
+ void swap(Checksum& other);
+};
+
+void swap(Checksum& a, Checksum& b);
+
+class HashTypeStronger {
+public:
+ bool operator()(const Checksum& lhs, const Checksum& rhs) const;
};
} // namespace aria2