mirror of
https://github.com/aaru-dps/libaaruformat.git
synced 2025-12-16 19:24:40 +00:00
Implement image verification.
This commit is contained in:
@@ -79,6 +79,8 @@ AARU_EXPORT int32_t AARU_CALL aaruf_read_sector_long(void* context,
|
||||
uint8_t* data,
|
||||
uint32_t* length);
|
||||
|
||||
AARU_EXPORT int32_t AARU_CALL aaruf_verify_image(void* context);
|
||||
|
||||
AARU_EXPORT int32_t AARU_CALL aaruf_cst_transform(const uint8_t* interleaved, uint8_t* sequential, size_t length);
|
||||
|
||||
AARU_EXPORT int32_t AARU_CALL aaruf_cst_untransform(const uint8_t* sequential, uint8_t* interleaved, size_t length);
|
||||
|
||||
@@ -36,6 +36,7 @@
|
||||
#define AARUF_ERROR_INVALID_TRACK_FORMAT -15
|
||||
#define AARUF_ERROR_SECTOR_TAG_NOT_PRESENT -16
|
||||
#define AARUF_ERROR_CANNOT_DECOMPRESS_BLOCK -17
|
||||
#define AARUF_ERROR_INVALID_BLOCK_CRC -18
|
||||
|
||||
#define AARUF_STATUS_OK 0
|
||||
#define AARUF_STATUS_SECTOR_NOT_DUMPED 1
|
||||
|
||||
Reference in New Issue
Block a user