mirror of
https://github.com/aaru-dps/libaaruformat.git
synced 2025-12-16 19:24:40 +00:00
Change read function signature.
This commit is contained in:
@@ -44,7 +44,7 @@ void *open(const char *filepath);
|
||||
|
||||
int close(void *context);
|
||||
|
||||
uint8_t *read_media_tag(void *context, int32_t tag, uint32_t *length);
|
||||
int32_t read_media_tag(void *context, uint8_t *data, int32_t tag, uint32_t *length);
|
||||
|
||||
void *crc64_init(uint64_t polynomial, uint64_t seed);
|
||||
|
||||
@@ -58,6 +58,6 @@ uint64_t crc64_data(const uint8_t *data, size_t len, uint64_t polynomial, uint64
|
||||
|
||||
uint64_t crc64_data_ecma(const uint8_t *data, size_t len);
|
||||
|
||||
uint8_t *read_sector(void *context, uint64_t sectorAddress, uint32_t *length);
|
||||
int32_t read_sector(void *context, uint64_t sectorAddress, uint8_t *data, uint32_t *length);
|
||||
|
||||
#endif //LIBDICFORMAT_DECLS_H
|
||||
|
||||
@@ -236,6 +236,10 @@ typedef enum
|
||||
CdMode2Form2 = 5
|
||||
} TrackType;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
DICF_STATUS_INVALID_CONTEXT = -1,
|
||||
} DicformatStatus;
|
||||
|
||||
#endif //LIBDICFORMAT_ENUMS_H
|
||||
|
||||
|
||||
@@ -13,5 +13,13 @@
|
||||
#define DICF_ERROR_CANNOT_READ_HEADER -6
|
||||
#define DICF_ERROR_CANNOT_READ_BLOCK -7
|
||||
#define DICF_ERROR_UNSUPPORTED_COMPRESSION -8
|
||||
#define DICF_ERROR_NOT_ENOUGH_MEMORY -9
|
||||
#define DICF_ERROR_BUFFER_TOO_SMALL -10
|
||||
#define DICF_ERROR_MEDIA_TAG_NOT_PRESENT -11
|
||||
|
||||
#define DICF_STATUS_OK 0
|
||||
#define DICF_STATUS_SECTOR_NEVER_WRITTEN 1
|
||||
#define DICF_STATUS_SECTOR_WITH_ERRORS 2
|
||||
#define DICF_STATUS_SECTOR_DELETED 3
|
||||
|
||||
#endif //LIBDICFORMAT_ERRORS_H
|
||||
|
||||
Reference in New Issue
Block a user