diff options
| author | 2019-03-05 09:20:11 -0500 | |
|---|---|---|
| committer | 2019-03-05 09:53:38 -0500 | |
| commit | 02bc9e9de14664f337da07f0efce750a0b6e993a (patch) | |
| tree | 1c104148856a81c4e84c2c07b3016eb5be45bb22 /src/core/hle/kernel | |
| parent | Merge pull request #2185 from FearlessTobi/port-4630 (diff) | |
| download | yuzu-02bc9e9de14664f337da07f0efce750a0b6e993a.tar.gz yuzu-02bc9e9de14664f337da07f0efce750a0b6e993a.tar.xz yuzu-02bc9e9de14664f337da07f0efce750a0b6e993a.zip | |
core/hle/ipc: Remove unnecessary includes
Removes a few inclusion dependencies from the headers or replaces
existing ones with ones that don't indirectly include the required
headers.
This allows removing an inclusion of core/memory.h, meaning that if the
memory header is ever changed in the future, it won't result in
rebuilding the entirety of the HLE services (as the IPC headers are used
quite ubiquitously throughout the HLE service implementations).
Diffstat (limited to 'src/core/hle/kernel')
| -rw-r--r-- | src/core/hle/kernel/hle_ipc.h | 10 | ||||
| -rw-r--r-- | src/core/hle/kernel/svc.cpp | 1 |
2 files changed, 6 insertions, 5 deletions
diff --git a/src/core/hle/kernel/hle_ipc.h b/src/core/hle/kernel/hle_ipc.h index cb1c5aff3..0107acea4 100644 --- a/src/core/hle/kernel/hle_ipc.h +++ b/src/core/hle/kernel/hle_ipc.h | |||
| @@ -15,6 +15,8 @@ | |||
| 15 | #include "core/hle/ipc.h" | 15 | #include "core/hle/ipc.h" |
| 16 | #include "core/hle/kernel/object.h" | 16 | #include "core/hle/kernel/object.h" |
| 17 | 17 | ||
| 18 | union ResultCode; | ||
| 19 | |||
| 18 | namespace Service { | 20 | namespace Service { |
| 19 | class ServiceFrameworkBase; | 21 | class ServiceFrameworkBase; |
| 20 | } | 22 | } |
| @@ -208,14 +210,12 @@ public: | |||
| 208 | 210 | ||
| 209 | template <typename T> | 211 | template <typename T> |
| 210 | SharedPtr<T> GetCopyObject(std::size_t index) { | 212 | SharedPtr<T> GetCopyObject(std::size_t index) { |
| 211 | ASSERT(index < copy_objects.size()); | 213 | return DynamicObjectCast<T>(copy_objects.at(index)); |
| 212 | return DynamicObjectCast<T>(copy_objects[index]); | ||
| 213 | } | 214 | } |
| 214 | 215 | ||
| 215 | template <typename T> | 216 | template <typename T> |
| 216 | SharedPtr<T> GetMoveObject(std::size_t index) { | 217 | SharedPtr<T> GetMoveObject(std::size_t index) { |
| 217 | ASSERT(index < move_objects.size()); | 218 | return DynamicObjectCast<T>(move_objects.at(index)); |
| 218 | return DynamicObjectCast<T>(move_objects[index]); | ||
| 219 | } | 219 | } |
| 220 | 220 | ||
| 221 | void AddMoveObject(SharedPtr<Object> object) { | 221 | void AddMoveObject(SharedPtr<Object> object) { |
| @@ -232,7 +232,7 @@ public: | |||
| 232 | 232 | ||
| 233 | template <typename T> | 233 | template <typename T> |
| 234 | std::shared_ptr<T> GetDomainRequestHandler(std::size_t index) const { | 234 | std::shared_ptr<T> GetDomainRequestHandler(std::size_t index) const { |
| 235 | return std::static_pointer_cast<T>(domain_request_handlers[index]); | 235 | return std::static_pointer_cast<T>(domain_request_handlers.at(index)); |
| 236 | } | 236 | } |
| 237 | 237 | ||
| 238 | void SetDomainRequestHandlers( | 238 | void SetDomainRequestHandlers( |
diff --git a/src/core/hle/kernel/svc.cpp b/src/core/hle/kernel/svc.cpp index c5d399bab..5709134d5 100644 --- a/src/core/hle/kernel/svc.cpp +++ b/src/core/hle/kernel/svc.cpp | |||
| @@ -20,6 +20,7 @@ | |||
| 20 | #include "core/hle/kernel/address_arbiter.h" | 20 | #include "core/hle/kernel/address_arbiter.h" |
| 21 | #include "core/hle/kernel/client_port.h" | 21 | #include "core/hle/kernel/client_port.h" |
| 22 | #include "core/hle/kernel/client_session.h" | 22 | #include "core/hle/kernel/client_session.h" |
| 23 | #include "core/hle/kernel/errors.h" | ||
| 23 | #include "core/hle/kernel/handle_table.h" | 24 | #include "core/hle/kernel/handle_table.h" |
| 24 | #include "core/hle/kernel/kernel.h" | 25 | #include "core/hle/kernel/kernel.h" |
| 25 | #include "core/hle/kernel/mutex.h" | 26 | #include "core/hle/kernel/mutex.h" |