diff options
author | Narr the Reg <juangerman-13@hotmail.com> | 2023-04-15 01:55:13 +0200 |
---|---|---|
committer | german77 <juangerman-13@hotmail.com> | 2023-04-24 07:28:09 +0200 |
commit | 00d76fc5f5276b74f4c14edda579981831808d35 (patch) | |
tree | 601c74976ca479af844e33c58cbb2be376c0830d /src/core/hle/service/nfc/mifare_user.h | |
parent | service: nfc: Create interface (diff) | |
download | yuzu-00d76fc5f5276b74f4c14edda579981831808d35.tar yuzu-00d76fc5f5276b74f4c14edda579981831808d35.tar.gz yuzu-00d76fc5f5276b74f4c14edda579981831808d35.tar.bz2 yuzu-00d76fc5f5276b74f4c14edda579981831808d35.tar.lz yuzu-00d76fc5f5276b74f4c14edda579981831808d35.tar.xz yuzu-00d76fc5f5276b74f4c14edda579981831808d35.tar.zst yuzu-00d76fc5f5276b74f4c14edda579981831808d35.zip |
Diffstat (limited to 'src/core/hle/service/nfc/mifare_user.h')
-rw-r--r-- | src/core/hle/service/nfc/mifare_user.h | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/src/core/hle/service/nfc/mifare_user.h b/src/core/hle/service/nfc/mifare_user.h deleted file mode 100644 index 9701f1d7f..000000000 --- a/src/core/hle/service/nfc/mifare_user.h +++ /dev/null @@ -1,52 +0,0 @@ -// SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project -// SPDX-License-Identifier: GPL-2.0-or-later - -#pragma once - -#include <array> -#include <memory> -#include <optional> - -#include "core/hle/service/kernel_helpers.h" -#include "core/hle/service/service.h" - -namespace Service::NFC { -class NfcDevice; - -class MFIUser final : public ServiceFramework<MFIUser> { -public: - explicit MFIUser(Core::System& system_); - ~MFIUser(); - -private: - enum class State : u32 { - NonInitialized, - Initialized, - }; - - void Initialize(HLERequestContext& ctx); - void Finalize(HLERequestContext& ctx); - void ListDevices(HLERequestContext& ctx); - void StartDetection(HLERequestContext& ctx); - void StopDetection(HLERequestContext& ctx); - void Read(HLERequestContext& ctx); - void Write(HLERequestContext& ctx); - void GetTagInfo(HLERequestContext& ctx); - void GetActivateEventHandle(HLERequestContext& ctx); - void GetDeactivateEventHandle(HLERequestContext& ctx); - void GetState(HLERequestContext& ctx); - void GetDeviceState(HLERequestContext& ctx); - void GetNpadId(HLERequestContext& ctx); - void GetAvailabilityChangeEventHandle(HLERequestContext& ctx); - - std::optional<std::shared_ptr<NfcDevice>> GetNfcDevice(u64 handle); - - KernelHelpers::ServiceContext service_context; - - std::array<std::shared_ptr<NfcDevice>, 10> devices{}; - - State state{State::NonInitialized}; - Kernel::KEvent* availability_change_event; -}; - -} // namespace Service::NFC |