diff options
author | Narr the Reg <juangerman-13@hotmail.com> | 2023-04-15 01:46:20 +0200 |
---|---|---|
committer | german77 <juangerman-13@hotmail.com> | 2023-04-24 07:28:09 +0200 |
commit | a3fa64fcc489d2cc1776807a37db3464dcc32686 (patch) | |
tree | 2ec9e6abd4b588f6584ec41ea6edf816ad25c98c /src/core/hle/service/nfc/nfc_interface.h | |
parent | Merge pull request #10074 from Kelebek1/fermi_blit (diff) | |
download | yuzu-a3fa64fcc489d2cc1776807a37db3464dcc32686.tar yuzu-a3fa64fcc489d2cc1776807a37db3464dcc32686.tar.gz yuzu-a3fa64fcc489d2cc1776807a37db3464dcc32686.tar.bz2 yuzu-a3fa64fcc489d2cc1776807a37db3464dcc32686.tar.lz yuzu-a3fa64fcc489d2cc1776807a37db3464dcc32686.tar.xz yuzu-a3fa64fcc489d2cc1776807a37db3464dcc32686.tar.zst yuzu-a3fa64fcc489d2cc1776807a37db3464dcc32686.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/nfc/nfc_interface.h (renamed from src/core/hle/service/nfc/nfc_user.h) | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/core/hle/service/nfc/nfc_user.h b/src/core/hle/service/nfc/nfc_interface.h index aee046ae8..8c1bf5a59 100644 --- a/src/core/hle/service/nfc/nfc_user.h +++ b/src/core/hle/service/nfc/nfc_interface.h @@ -13,16 +13,10 @@ namespace Service::NFC { class NfcDevice; -class IUser final : public ServiceFramework<IUser> { +class Interface : public ServiceFramework<Interface> { public: - explicit IUser(Core::System& system_); - ~IUser(); - -private: - enum class State : u32 { - NonInitialized, - Initialized, - }; + explicit Interface(Core::System& system_, const char* name); + ~Interface(); void Initialize(HLERequestContext& ctx); void Finalize(HLERequestContext& ctx); @@ -39,6 +33,12 @@ private: void AttachDeactivateEvent(HLERequestContext& ctx); void SendCommandByPassThrough(HLERequestContext& ctx); +private: + enum class State : u32 { + NonInitialized, + Initialized, + }; + std::optional<std::shared_ptr<NfcDevice>> GetNfcDevice(u64 handle); KernelHelpers::ServiceContext service_context; |