| 1 | /* |
| 2 | * Copyright (c) 2018-2019 Atmosphère-NX |
| 3 | * |
| 4 | * This program is free software; you can redistribute it and/or modify it |
| 5 | * under the terms and conditions of the GNU General Public License, |
| 6 | * version 2, as published by the Free Software Foundation. |
| 7 | * |
| 8 | * This program is distributed in the hope it will be useful, but WITHOUT |
| 9 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
| 10 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for |
| 11 | * more details. |
| 12 | * |
| 13 | * You should have received a copy of the GNU General Public License |
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 15 | */ |
| 16 | #pragma once |
| 17 | #include <vapours/results/results_common.hpp> |
| 18 | |
| 19 | namespace ams::capsrv { |
| 20 | |
| 21 | R_DEFINE_NAMESPACE_RESULT_MODULE(206); |
| 22 | |
| 23 | R_DEFINE_ERROR_RANGE(AlbumError, 2, 99); |
| 24 | R_DEFINE_ERROR_RESULT(AlbumWorkMemoryError, 3); |
| 25 | |
| 26 | R_DEFINE_ERROR_RESULT(AlbumAlreadyOpened, 7); |
| 27 | R_DEFINE_ERROR_RESULT(AlbumOutOfRange, 8); |
| 28 | |
| 29 | R_DEFINE_ERROR_RANGE(AlbumInvalidFileId, 10, 19); |
| 30 | R_DEFINE_ERROR_RESULT(AlbumInvalidApplicationId, 11); |
| 31 | R_DEFINE_ERROR_RESULT(AlbumInvalidTimestamp, 12); |
| 32 | R_DEFINE_ERROR_RESULT(AlbumInvalidStorage, 13); |
| 33 | R_DEFINE_ERROR_RESULT(AlbumInvalidFileContents, 14); |
| 34 | |
| 35 | R_DEFINE_ERROR_RESULT(AlbumIsNotMounted, 21); |
| 36 | R_DEFINE_ERROR_RESULT(AlbumIsFull, 22); |
| 37 | R_DEFINE_ERROR_RESULT(AlbumFileNotFound, 23); |
| 38 | R_DEFINE_ERROR_RESULT(AlbumInvalidFileData, 24); |
| 39 | R_DEFINE_ERROR_RESULT(AlbumFileCountLimit, 25); |
| 40 | R_DEFINE_ERROR_RESULT(AlbumFileNoThumbnail, 26); |
| 41 | |
| 42 | R_DEFINE_ERROR_RESULT(AlbumReadBufferShortage, 30); |
| 43 | |
| 44 | R_DEFINE_ERROR_RANGE(AlbumFileSystemError, 90, 99); |
| 45 | R_DEFINE_ERROR_RANGE(AlbumAccessCorrupted, 94, 96); |
| 46 | R_DEFINE_ERROR_RESULT(AlbumDestinationAccessCorrupted, 96); |
| 47 | |
| 48 | R_DEFINE_ERROR_RANGE(ControlError, 800, 899); |
| 49 | R_DEFINE_ERROR_RESULT(ControlResourceLimit, 820); |
| 50 | R_DEFINE_ERROR_RESULT(ControlNotOpened, 822); |
| 51 | |
| 52 | R_DEFINE_ERROR_RESULT(NotSupported, 1023); |
| 53 | |
| 54 | R_DEFINE_ERROR_RANGE(InternalError, 1024, 2047); |
| 55 | R_DEFINE_ERROR_RESULT(InternalJpegEncoderError, 1210); |
| 56 | R_DEFINE_ERROR_RESULT(InternalJpegWorkMemoryShortage, 1212); |
| 57 | |
| 58 | R_DEFINE_ERROR_RANGE(InternalFileDataVerificationError, 1300, 1399); |
| 59 | R_DEFINE_ERROR_RESULT(InternalFileDataVerificationEmptyFileData, 1301); |
| 60 | R_DEFINE_ERROR_RESULT(InternalFileDataVerificationExifExtractionFailed, 1302); |
| 61 | R_DEFINE_ERROR_RESULT(InternalFileDataVerificationExifAnalyzationFailed, 1303); |
| 62 | R_DEFINE_ERROR_RESULT(InternalFileDataVerificationDateTimeExtractionFailed, 1304); |
| 63 | R_DEFINE_ERROR_RESULT(InternalFileDataVerificationInvalidDateTimeLength, 1305); |
| 64 | R_DEFINE_ERROR_RESULT(InternalFileDataVerificationInconsistentDateTime, 1306); |
| 65 | R_DEFINE_ERROR_RESULT(InternalFileDataVerificationMakerNoteExtractionFailed, 1307); |
| 66 | R_DEFINE_ERROR_RESULT(InternalFileDataVerificationInconsistentApplicationId, 1308); |
| 67 | R_DEFINE_ERROR_RESULT(InternalFileDataVerificationInconsistentSignature, 1309); |
| 68 | R_DEFINE_ERROR_RESULT(InternalFileDataVerificationUnsupportedOrientation, 1310); |
| 69 | R_DEFINE_ERROR_RESULT(InternalFileDataVerificationInvalidDataDimension, 1311); |
| 70 | R_DEFINE_ERROR_RESULT(InternalFileDataVerificationInconsistentOrientation, 1312); |
| 71 | |
| 72 | R_DEFINE_ERROR_RANGE(InternalAlbumLimitationError, 1400, 1499); |
| 73 | R_DEFINE_ERROR_RESULT(InternalAlbumLimitationFileCountLimit, 1401); |
| 74 | |
| 75 | R_DEFINE_ERROR_RANGE(InternalSignatureError, 1500, 1599); |
| 76 | R_DEFINE_ERROR_RESULT(InternalSignatureExifExtractionFailed, 1501); |
| 77 | R_DEFINE_ERROR_RESULT(InternalSignatureMakerNoteExtractionFailed, 1502); |
| 78 | |
| 79 | R_DEFINE_ERROR_RANGE(InternalAlbumSessionError, 1700, 1799); |
| 80 | R_DEFINE_ERROR_RESULT(InternalAlbumLimitationSessionCountLimit, 1701); |
| 81 | |
| 82 | R_DEFINE_ERROR_RANGE(InternalAlbumTemporaryFileError, 1900, 1999); |
| 83 | R_DEFINE_ERROR_RESULT(InternalAlbumTemporaryFileCountLimit, 1901); |
| 84 | R_DEFINE_ERROR_RESULT(InternalAlbumTemporaryFileCreateError, 1902); |
| 85 | R_DEFINE_ERROR_RESULT(InternalAlbumTemporaryFileCreateRetryCountLimit, 1903); |
| 86 | R_DEFINE_ERROR_RESULT(InternalAlbumTemporaryFileOpenError, 1904); |
| 87 | R_DEFINE_ERROR_RESULT(InternalAlbumTemporaryFileGetFileSizeError, 1905); |
| 88 | R_DEFINE_ERROR_RESULT(InternalAlbumTemporaryFileSetFileSizeError, 1906); |
| 89 | R_DEFINE_ERROR_RESULT(InternalAlbumTemporaryFileReadFileError, 1907); |
| 90 | R_DEFINE_ERROR_RESULT(InternalAlbumTemporaryFileWriteFileError, 1908); |
| 91 | |
| 92 | } |
| 93 | |