summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/nfc/mifare_interface.h
diff options
context:
space:
mode:
authorNarr the Reg <juangerman-13@hotmail.com>2023-04-20 03:01:23 +0200
committergerman77 <juangerman-13@hotmail.com>2023-05-06 06:02:59 +0200
commit94151097b9abadf35c55ea06a31925c9848f4c62 (patch)
tree28a00c878f90492ffd2bb95521c2cc3990cc4323 /src/core/hle/service/nfc/mifare_interface.h
parentcore: service: Add FunctionInfoTyped to allow expanding existing interfaces (diff)
downloadyuzu-94151097b9abadf35c55ea06a31925c9848f4c62.tar
yuzu-94151097b9abadf35c55ea06a31925c9848f4c62.tar.gz
yuzu-94151097b9abadf35c55ea06a31925c9848f4c62.tar.bz2
yuzu-94151097b9abadf35c55ea06a31925c9848f4c62.tar.lz
yuzu-94151097b9abadf35c55ea06a31925c9848f4c62.tar.xz
yuzu-94151097b9abadf35c55ea06a31925c9848f4c62.tar.zst
yuzu-94151097b9abadf35c55ea06a31925c9848f4c62.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/service/nfc/mifare_interface.h52
1 files changed, 0 insertions, 52 deletions
diff --git a/src/core/hle/service/nfc/mifare_interface.h b/src/core/hle/service/nfc/mifare_interface.h
deleted file mode 100644
index 698c8a6b6..000000000
--- a/src/core/hle/service/nfc/mifare_interface.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 MFInterface : public ServiceFramework<MFInterface> {
-public:
- explicit MFInterface(Core::System& system_, const char* name);
- ~MFInterface();
-
- 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);
-
-private:
- enum class State : u32 {
- NonInitialized,
- Initialized,
- };
-
- 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