2022-04-23 04:59:50 -04:00
|
|
|
// SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project
|
|
|
|
|
// SPDX-FileCopyrightText: Copyright 2014 The Android Open Source Project
|
2021-11-11 18:35:28 -08:00
|
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
2022-04-23 04:59:50 -04:00
|
|
|
// Parts of this implementation were based on:
|
2021-11-11 18:35:28 -08:00
|
|
|
// https://cs.android.com/android/platform/superproject/+/android-5.1.1_r38:frameworks/native/include/binder/IBinder.h
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
2024-02-14 00:09:29 -05:00
|
|
|
#include <span>
|
|
|
|
|
|
2021-11-11 18:35:28 -08:00
|
|
|
#include "common/common_types.h"
|
|
|
|
|
|
|
|
|
|
namespace Kernel {
|
|
|
|
|
class KReadableEvent;
|
|
|
|
|
} // namespace Kernel
|
|
|
|
|
|
2023-02-19 14:42:12 -05:00
|
|
|
namespace Service {
|
|
|
|
|
class HLERequestContext;
|
|
|
|
|
}
|
|
|
|
|
|
2022-03-19 21:51:16 -07:00
|
|
|
namespace Service::android {
|
2021-11-11 18:35:28 -08:00
|
|
|
|
|
|
|
|
class IBinder {
|
|
|
|
|
public:
|
2022-07-15 10:28:18 +01:00
|
|
|
virtual ~IBinder() = default;
|
2024-02-14 23:44:05 -05:00
|
|
|
virtual void Transact(u32 code, std::span<const u8> parcel_data, std::span<u8> parcel_reply,
|
|
|
|
|
u32 flags) = 0;
|
|
|
|
|
virtual Kernel::KReadableEvent* GetNativeHandle(u32 type_id) = 0;
|
2021-11-11 18:35:28 -08:00
|
|
|
};
|
|
|
|
|
|
2022-03-19 21:51:16 -07:00
|
|
|
} // namespace Service::android
|