mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2025-01-21 07:45:38 +00:00
19 lines
553 B
C
19 lines
553 B
C
|
#pragma once
|
||
|
#include "progress_callback.h"
|
||
|
#include "types.h"
|
||
|
#include <array>
|
||
|
#include <string>
|
||
|
|
||
|
class CDImage;
|
||
|
|
||
|
namespace CDImageHasher {
|
||
|
|
||
|
using Hash = std::array<u8, 16>;
|
||
|
std::string HashToString(const Hash& hash);
|
||
|
|
||
|
bool GetImageHash(CDImage* image, Hash* out_hash,
|
||
|
ProgressCallback* progress_callback = ProgressCallback::NullProgressCallback);
|
||
|
bool GetTrackHash(CDImage* image, u8 track, Hash* out_hash,
|
||
|
ProgressCallback* progress_callback = ProgressCallback::NullProgressCallback);
|
||
|
|
||
|
} // namespace CDImageHasher
|