diff options
| author | 2018-01-24 23:09:03 -0500 | |
|---|---|---|
| committer | 2018-01-24 23:09:03 -0500 | |
| commit | 748c0de539674dc8ca4a5a8aadd2a61b0eabe652 (patch) | |
| tree | ae56efe8654d3aa3a5e75ec04bd9dfdcc06023a9 /src/core/hle/kernel/domain.h | |
| parent | audout:u OpenAudioOut and IAudioOut (#138) (diff) | |
| parent | audout_u: Various cleanups. (diff) | |
| download | yuzu-748c0de539674dc8ca4a5a8aadd2a61b0eabe652.tar.gz yuzu-748c0de539674dc8ca4a5a8aadd2a61b0eabe652.tar.xz yuzu-748c0de539674dc8ca4a5a8aadd2a61b0eabe652.zip | |
Merge pull request #137 from bunnei/improve-ipc
Improve IPC, unify Domains and Sessions, and add validation
Diffstat (limited to 'src/core/hle/kernel/domain.h')
| -rw-r--r-- | src/core/hle/kernel/domain.h | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/src/core/hle/kernel/domain.h b/src/core/hle/kernel/domain.h deleted file mode 100644 index 3fec3b0b2..000000000 --- a/src/core/hle/kernel/domain.h +++ /dev/null | |||
| @@ -1,45 +0,0 @@ | |||
| 1 | // Copyright 2018 yuzu emulator team | ||
| 2 | // Licensed under GPLv2 or any later version | ||
| 3 | // Refer to the license.txt file included. | ||
| 4 | |||
| 5 | #pragma once | ||
| 6 | |||
| 7 | #include <memory> | ||
| 8 | #include <string> | ||
| 9 | #include <vector> | ||
| 10 | #include "core/hle/kernel/sync_object.h" | ||
| 11 | #include "core/hle/result.h" | ||
| 12 | |||
| 13 | namespace Kernel { | ||
| 14 | |||
| 15 | class Session; | ||
| 16 | class SessionRequestHandler; | ||
| 17 | |||
| 18 | class Domain final : public SyncObject { | ||
| 19 | public: | ||
| 20 | std::string GetTypeName() const override { | ||
| 21 | return "Domain"; | ||
| 22 | } | ||
| 23 | |||
| 24 | static const HandleType HANDLE_TYPE = HandleType::Domain; | ||
| 25 | HandleType GetHandleType() const override { | ||
| 26 | return HANDLE_TYPE; | ||
| 27 | } | ||
| 28 | |||
| 29 | static ResultVal<SharedPtr<Domain>> CreateFromSession(const Session& server); | ||
| 30 | |||
| 31 | ResultCode SendSyncRequest(SharedPtr<Thread> thread) override; | ||
| 32 | |||
| 33 | /// The name of this domain (optional) | ||
| 34 | std::string name; | ||
| 35 | |||
| 36 | std::vector<std::shared_ptr<SessionRequestHandler>> request_handlers; | ||
| 37 | |||
| 38 | private: | ||
| 39 | Domain() = default; | ||
| 40 | ~Domain() override = default; | ||
| 41 | |||
| 42 | static ResultVal<SharedPtr<Domain>> Create(std::string name = "Unknown"); | ||
| 43 | }; | ||
| 44 | |||
| 45 | } // namespace Kernel | ||