summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/vi/hos_binder_driver.h
diff options
context:
space:
mode:
authorNarr the Reg <juangerman-13@hotmail.com>2024-02-16 19:11:02 +0100
committerGitHub <noreply@github.com>2024-02-16 19:11:02 +0100
commit6e2678a42cb4a0ad02a7c8959621b0c98353c572 (patch)
treee1d71c4545dacdc7940c2a8b67ea534c6e52d58a /src/core/hle/service/vi/hos_binder_driver.h
parentMerge pull request #12996 from german77/settings-ipc (diff)
parentvi: rewrite IApplicationDisplayService (diff)
downloadyuzu-6e2678a42cb4a0ad02a7c8959621b0c98353c572.tar
yuzu-6e2678a42cb4a0ad02a7c8959621b0c98353c572.tar.gz
yuzu-6e2678a42cb4a0ad02a7c8959621b0c98353c572.tar.bz2
yuzu-6e2678a42cb4a0ad02a7c8959621b0c98353c572.tar.lz
yuzu-6e2678a42cb4a0ad02a7c8959621b0c98353c572.tar.xz
yuzu-6e2678a42cb4a0ad02a7c8959621b0c98353c572.tar.zst
yuzu-6e2678a42cb4a0ad02a7c8959621b0c98353c572.zip
Diffstat (limited to 'src/core/hle/service/vi/hos_binder_driver.h')
-rw-r--r--src/core/hle/service/vi/hos_binder_driver.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/core/hle/service/vi/hos_binder_driver.h b/src/core/hle/service/vi/hos_binder_driver.h
new file mode 100644
index 000000000..ed6e8cdbe
--- /dev/null
+++ b/src/core/hle/service/vi/hos_binder_driver.h
@@ -0,0 +1,30 @@
+// SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include "core/hle/service/cmif_types.h"
+#include "core/hle/service/nvnflinger/binder.h"
+#include "core/hle/service/service.h"
+
+namespace Service::VI {
+
+class IHOSBinderDriver final : public ServiceFramework<IHOSBinderDriver> {
+public:
+ explicit IHOSBinderDriver(Core::System& system_, Nvnflinger::HosBinderDriverServer& server);
+ ~IHOSBinderDriver() override;
+
+private:
+ Result TransactParcel(s32 binder_id, android::TransactionId transaction_id,
+ InBuffer<BufferAttr_HipcMapAlias> parcel_data,
+ OutBuffer<BufferAttr_HipcMapAlias> parcel_reply, u32 flags);
+ Result AdjustRefcount(s32 binder_id, s32 addval, s32 type);
+ Result GetNativeHandle(s32 binder_id, u32 type_id,
+ OutCopyHandle<Kernel::KReadableEvent> out_handle);
+ Result TransactParcelAuto(s32 binder_id, android::TransactionId transaction_id,
+ InBuffer<BufferAttr_HipcAutoSelect> parcel_data,
+ OutBuffer<BufferAttr_HipcAutoSelect> parcel_reply, u32 flags);
+
+private:
+ Nvnflinger::HosBinderDriverServer& m_server;
+};
+
+} // namespace Service::VI