summaryrefslogtreecommitdiffstats
path: root/src/core/hle/ipc_helpers.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-05-02 15:55:14 +0200
committerGitHub <noreply@github.com>2018-05-02 15:55:14 +0200
commit902182f80cb808d221998ab904a0c8dab93fd440 (patch)
treed8add81daca8bc72d5344549528ce4f3953f250f /src/core/hle/ipc_helpers.h
parentMerge pull request #429 from Subv/ioctl_corruption (diff)
parentipc: Add support for PopIpcInterface() method. (diff)
downloadyuzu-902182f80cb808d221998ab904a0c8dab93fd440.tar
yuzu-902182f80cb808d221998ab904a0c8dab93fd440.tar.gz
yuzu-902182f80cb808d221998ab904a0c8dab93fd440.tar.bz2
yuzu-902182f80cb808d221998ab904a0c8dab93fd440.tar.lz
yuzu-902182f80cb808d221998ab904a0c8dab93fd440.tar.xz
yuzu-902182f80cb808d221998ab904a0c8dab93fd440.tar.zst
yuzu-902182f80cb808d221998ab904a0c8dab93fd440.zip
Diffstat (limited to 'src/core/hle/ipc_helpers.h')
-rw-r--r--src/core/hle/ipc_helpers.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/hle/ipc_helpers.h b/src/core/hle/ipc_helpers.h
index 3f87c4297..24605a273 100644
--- a/src/core/hle/ipc_helpers.h
+++ b/src/core/hle/ipc_helpers.h
@@ -298,6 +298,13 @@ public:
template <typename T>
Kernel::SharedPtr<T> GetCopyObject(size_t index);
+
+ template <class T>
+ std::shared_ptr<T> PopIpcInterface() {
+ ASSERT(context->Session()->IsDomain());
+ ASSERT(context->GetDomainMessageHeader()->input_object_count > 0);
+ return context->GetDomainRequestHandler<T>(Pop<u32>() - 1);
+ }
};
/// Pop ///