diff options
author | bunnei <bunneidev@gmail.com> | 2017-05-26 11:59:57 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-26 11:59:57 -0400 |
commit | 61decd84cc5308bded75eae62c3247a66b3698d8 (patch) | |
tree | bbe05121af1a971bc295cb81baeea63f8c54f407 /src/core/hle/ipc.h | |
parent | bae3799bd5208d08bb52546ad0723103c94cada3 (diff) | |
parent | a5810d61dab191b5a8e3cbb9de9fc9a8bad88826 (diff) |
Merge pull request #2716 from yuriks/decentralized-result
Decentralize ResultCode
Diffstat (limited to 'src/core/hle/ipc.h')
-rw-r--r-- | src/core/hle/ipc.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/hle/ipc.h b/src/core/hle/ipc.h index 3a5d481a5..303ca090d 100644 --- a/src/core/hle/ipc.h +++ b/src/core/hle/ipc.h @@ -5,6 +5,7 @@ #pragma once #include "common/common_types.h" +#include "core/hle/kernel/errors.h" #include "core/hle/kernel/thread.h" #include "core/memory.h" @@ -43,6 +44,12 @@ inline u32* GetStaticBuffers(const int offset = 0) { namespace IPC { +// These errors are commonly returned by invalid IPC translations, so alias them here for +// convenience. +// TODO(yuriks): These will probably go away once translation is implemented inside the kernel. +using Kernel::ERR_INVALID_BUFFER_DESCRIPTOR; +constexpr auto ERR_INVALID_HANDLE = Kernel::ERR_INVALID_HANDLE_OS; + enum DescriptorType : u32 { // Buffer related desciptors types (mask : 0x0F) StaticBuffer = 0x02, |