diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-07-27 19:32:35 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-07-27 19:32:35 +0900 |
| commit | 67e91c3431a4c89a76093e33cd121f89f5550fb7 (patch) | |
| tree | 50f6035024bd43716bf19a5e30c720bee5197e40 /src/Checksum.h | |
| parent | 7c317de4e74a73e8ce55585f69bba6d4db5e6899 (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.h | 9 |
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 |
