summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/vi/hos_binder_driver.h
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2024-02-14 06:09:29 +0100
committerLiam <byteslice@airmail.cc>2024-02-14 18:03:32 +0100
commit59011a04a10d20804eb1eb4c8164b64d0f0ca824 (patch)
tree23d4943c7c49b7d16434231d441d2934fe06193f /src/core/hle/service/vi/hos_binder_driver.h
parentvi: rewrite IApplicationRootService, IManagerRootService, ISystemRootService (diff)
downloadyuzu-59011a04a10d20804eb1eb4c8164b64d0f0ca824.tar
yuzu-59011a04a10d20804eb1eb4c8164b64d0f0ca824.tar.gz
yuzu-59011a04a10d20804eb1eb4c8164b64d0f0ca824.tar.bz2
yuzu-59011a04a10d20804eb1eb4c8164b64d0f0ca824.tar.lz
yuzu-59011a04a10d20804eb1eb4c8164b64d0f0ca824.tar.xz
yuzu-59011a04a10d20804eb1eb4c8164b64d0f0ca824.tar.zst
yuzu-59011a04a10d20804eb1eb4c8164b64d0f0ca824.zip
Diffstat (limited to 'src/core/hle/service/vi/hos_binder_driver.h')
-rw-r--r--src/core/hle/service/vi/hos_binder_driver.h18
1 files changed, 13 insertions, 5 deletions
diff --git a/src/core/hle/service/vi/hos_binder_driver.h b/src/core/hle/service/vi/hos_binder_driver.h
index 24780c7d8..ed6e8cdbe 100644
--- a/src/core/hle/service/vi/hos_binder_driver.h
+++ b/src/core/hle/service/vi/hos_binder_driver.h
@@ -1,22 +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_);
+ explicit IHOSBinderDriver(Core::System& system_, Nvnflinger::HosBinderDriverServer& server);
~IHOSBinderDriver() override;
private:
- void TransactParcel(HLERequestContext& ctx);
- void AdjustRefcount(HLERequestContext& ctx);
- void GetNativeHandle(HLERequestContext& ctx);
+ 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& server;
+ Nvnflinger::HosBinderDriverServer& m_server;
};
} // namespace Service::VI