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_interface.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 '')
-rw-r--r-- | src/core/hle/service/nfc/mifare_interface.h (renamed from src/core/hle/service/nfc/mifare_user.h) | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/core/hle/service/nfc/mifare_user.h b/src/core/hle/service/nfc/mifare_interface.h index 9701f1d7f..698c8a6b6 100644 --- a/src/core/hle/service/nfc/mifare_user.h +++ b/src/core/hle/service/nfc/mifare_interface.h @@ -13,16 +13,10 @@ namespace Service::NFC { class NfcDevice; -class MFIUser final : public ServiceFramework<MFIUser> { +class MFInterface : public ServiceFramework<MFInterface> { public: - explicit MFIUser(Core::System& system_); - ~MFIUser(); - -private: - enum class State : u32 { - NonInitialized, - Initialized, - }; + explicit MFInterface(Core::System& system_, const char* name); + ~MFInterface(); void Initialize(HLERequestContext& ctx); void Finalize(HLERequestContext& ctx); @@ -39,6 +33,12 @@ private: 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; |