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/nfc.cpp | |
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/nfc.cpp')
-rw-r--r-- | src/core/hle/service/nfc/nfc.cpp | 32 |
1 files changed, 29 insertions, 3 deletions
diff --git a/src/core/hle/service/nfc/nfc.cpp b/src/core/hle/service/nfc/nfc.cpp index 7a8f59725..444d65f07 100644 --- a/src/core/hle/service/nfc/nfc.cpp +++ b/src/core/hle/service/nfc/nfc.cpp @@ -6,7 +6,7 @@ #include "common/logging/log.h" #include "common/settings.h" #include "core/hle/service/ipc_helpers.h" -#include "core/hle/service/nfc/mifare_user.h" +#include "core/hle/service/nfc/mifare_interface.h" #include "core/hle/service/nfc/nfc.h" #include "core/hle/service/nfc/nfc_interface.h" #include "core/hle/service/server_manager.h" @@ -16,7 +16,7 @@ namespace Service::NFC { class IUser final : public Interface { public: - explicit IUser(Core::System& system_) : Interface(system_, "IUser") { + explicit IUser(Core::System& system_) : Interface(system_, "NFC::IUser") { // clang-format off static const FunctionInfo functions[] = { {0, &Interface::Initialize, "InitializeOld"}, @@ -50,7 +50,7 @@ public: class ISystem final : public Interface { public: - explicit ISystem(Core::System& system_) : Interface{system_, "ISystem"} { + explicit ISystem(Core::System& system_) : Interface{system_, "NFC::ISystem"} { // clang-format off static const FunctionInfo functions[] = { {0, &Interface::Initialize, "InitializeOld"}, @@ -85,6 +85,32 @@ public: } }; +class MFIUser final : public MFInterface { +public: + explicit MFIUser(Core::System& system_) : MFInterface{system_, "NFC::MFInterface"} { + // clang-format off + static const FunctionInfo functions[] = { + {0, &MFIUser::Initialize, "Initialize"}, + {1, &MFIUser::Finalize, "Finalize"}, + {2, &MFIUser::ListDevices, "ListDevices"}, + {3, &MFIUser::StartDetection, "StartDetection"}, + {4, &MFIUser::StopDetection, "StopDetection"}, + {5, &MFIUser::Read, "Read"}, + {6, &MFIUser::Write, "Write"}, + {7, &MFIUser::GetTagInfo, "GetTagInfo"}, + {8, &MFIUser::GetActivateEventHandle, "GetActivateEventHandle"}, + {9, &MFIUser::GetDeactivateEventHandle, "GetDeactivateEventHandle"}, + {10, &MFIUser::GetState, "GetState"}, + {11, &MFIUser::GetDeviceState, "GetDeviceState"}, + {12, &MFIUser::GetNpadId, "GetNpadId"}, + {13, &MFIUser::GetAvailabilityChangeEventHandle, "GetAvailabilityChangeEventHandle"}, + }; + // clang-format on + + RegisterHandlers(functions); + } +}; + class IAm final : public ServiceFramework<IAm> { public: explicit IAm(Core::System& system_) : ServiceFramework{system_, "NFC::IAm"} { |