| 1 | /* |
| 2 | * Copyright (c) 2018-2020 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 | |
| 17 | #pragma once |
| 18 | #include <vapours/results/results_common.hpp> |
| 19 | |
| 20 | namespace ams::svc { |
| 21 | |
| 22 | R_DEFINE_NAMESPACE_RESULT_MODULE(1); |
| 23 | |
| 24 | R_DEFINE_ERROR_RESULT(OutOfSessions, 7); |
| 25 | |
| 26 | R_DEFINE_ERROR_RESULT(InvalidArgument, 14); |
| 27 | |
| 28 | R_DEFINE_ERROR_RESULT(NotImplemented, 33); |
| 29 | |
| 30 | R_DEFINE_ERROR_RESULT(StopProcessingException, 54); |
| 31 | |
| 32 | R_DEFINE_ERROR_RESULT(NoSynchronizationObject, 57); |
| 33 | |
| 34 | R_DEFINE_ERROR_RESULT(TerminationRequested, 59); |
| 35 | |
| 36 | R_DEFINE_ERROR_RESULT(NoEvent, 70); |
| 37 | |
| 38 | R_DEFINE_ERROR_RESULT(InvalidSize, 101); |
| 39 | R_DEFINE_ERROR_RESULT(InvalidAddress, 102); |
| 40 | R_DEFINE_ERROR_RESULT(OutOfResource, 103); |
| 41 | R_DEFINE_ERROR_RESULT(OutOfMemory, 104); |
| 42 | R_DEFINE_ERROR_RESULT(OutOfHandles, 105); |
| 43 | R_DEFINE_ERROR_RESULT(InvalidCurrentMemory, 106); |
| 44 | |
| 45 | R_DEFINE_ERROR_RESULT(InvalidNewMemoryPermission, 108); |
| 46 | |
| 47 | R_DEFINE_ERROR_RESULT(InvalidMemoryRegion, 110); |
| 48 | |
| 49 | R_DEFINE_ERROR_RESULT(InvalidPriority, 112); |
| 50 | R_DEFINE_ERROR_RESULT(InvalidCoreId, 113); |
| 51 | R_DEFINE_ERROR_RESULT(InvalidHandle, 114); |
| 52 | R_DEFINE_ERROR_RESULT(InvalidPointer, 115); |
| 53 | R_DEFINE_ERROR_RESULT(InvalidCombination, 116); |
| 54 | R_DEFINE_ERROR_RESULT(TimedOut, 117); |
| 55 | R_DEFINE_ERROR_RESULT(Cancelled, 118); |
| 56 | R_DEFINE_ERROR_RESULT(OutOfRange, 119); |
| 57 | R_DEFINE_ERROR_RESULT(InvalidEnumValue, 120); |
| 58 | R_DEFINE_ERROR_RESULT(NotFound, 121); |
| 59 | R_DEFINE_ERROR_RESULT(Busy, 122); |
| 60 | R_DEFINE_ERROR_RESULT(SessionClosed, 123); |
| 61 | R_DEFINE_ERROR_RESULT(NotHandled, 124); |
| 62 | R_DEFINE_ERROR_RESULT(InvalidState, 125); |
| 63 | R_DEFINE_ERROR_RESULT(ReservedUsed, 126); |
| 64 | R_DEFINE_ERROR_RESULT(NotSupported, 127); |
| 65 | R_DEFINE_ERROR_RESULT(Debug, 128); |
| 66 | R_DEFINE_ERROR_RESULT(NoThread, 129); |
| 67 | R_DEFINE_ERROR_RESULT(UnknownThread, 130); |
| 68 | R_DEFINE_ERROR_RESULT(PortClosed, 131); |
| 69 | R_DEFINE_ERROR_RESULT(LimitReached, 132); |
| 70 | R_DEFINE_ERROR_RESULT(InvalidMemoryPool, 133); |
| 71 | |
| 72 | R_DEFINE_ERROR_RESULT(ReceiveListBroken, 258); |
| 73 | R_DEFINE_ERROR_RESULT(OutOfAddressSpace, 259); |
| 74 | R_DEFINE_ERROR_RESULT(MessageTooLarge, 260); |
| 75 | |
| 76 | R_DEFINE_ERROR_RESULT(InvalidProcessId, 517); |
| 77 | R_DEFINE_ERROR_RESULT(InvalidThreadId, 518); |
| 78 | R_DEFINE_ERROR_RESULT(InvalidId, 519); |
| 79 | R_DEFINE_ERROR_RESULT(ProcessTerminated, 520); |
| 80 | |
| 81 | } |
| 82 | |