Files
libaaruformat/include/aaruformat/errors.h

54 lines
2.3 KiB
C
Raw Normal View History

2022-05-28 12:57:21 +01:00
/*
* This file is part of the Aaru Data Preservation Suite.
2025-08-01 21:19:45 +01:00
* Copyright (c) 2019-2025 Natalia Portillo.
2022-05-28 12:57:21 +01:00
*
* This library is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of the
* License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
2020-03-01 19:53:05 +00:00
#ifndef LIBAARUFORMAT_ERRORS_H
#define LIBAARUFORMAT_ERRORS_H
#define AARUF_ERROR_NOT_AARUFORMAT (-1)
#define AARUF_ERROR_FILE_TOO_SMALL (-2)
#define AARUF_ERROR_INCOMPATIBLE_VERSION (-3)
#define AARUF_ERROR_CANNOT_READ_INDEX (-4)
#define AARUF_ERROR_SECTOR_OUT_OF_BOUNDS (-5)
#define AARUF_ERROR_CANNOT_READ_HEADER (-6)
#define AARUF_ERROR_CANNOT_READ_BLOCK (-7)
#define AARUF_ERROR_UNSUPPORTED_COMPRESSION (-8)
#define AARUF_ERROR_NOT_ENOUGH_MEMORY (-9)
#define AARUF_ERROR_BUFFER_TOO_SMALL (-10)
#define AARUF_ERROR_MEDIA_TAG_NOT_PRESENT (-11)
#define AARUF_ERROR_INCORRECT_MEDIA_TYPE (-12)
#define AARUF_ERROR_TRACK_NOT_FOUND (-13)
#define AARUF_ERROR_REACHED_UNREACHABLE_CODE (-14)
#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_ERROR_CANNOT_CREATE_FILE (-19)
#define AARUF_ERROR_INVALID_APP_NAME_LENGTH (-20)
#define AARUF_ERROR_CANNOT_WRITE_HEADER (-21)
#define AARUF_READ_ONLY (-22)
#define AARUF_ERROR_CANNOT_WRITE_BLOCK_HEADER (-23)
#define AARUF_ERROR_CANNOT_WRITE_BLOCK_DATA (-24)
#define AARUF_ERROR_CANNOT_SET_DDT_ENTRY (-25)
2019-03-22 21:22:36 +00:00
2024-04-30 15:51:32 +01:00
#define AARUF_STATUS_OK 0
#define AARUF_STATUS_SECTOR_NOT_DUMPED 1
2020-03-01 19:53:05 +00:00
#define AARUF_STATUS_SECTOR_WITH_ERRORS 2
2024-04-30 15:51:32 +01:00
#define AARUF_STATUS_SECTOR_DELETED 3
2024-04-30 15:51:32 +01:00
#endif // LIBAARUFORMAT_ERRORS_H