diff options
author | Narr the Reg <juangerman-13@hotmail.com> | 2022-11-20 16:31:20 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-20 16:31:20 +0100 |
commit | db7bcd51ae09c4ef25e08096de563903f61e2380 (patch) | |
tree | 5ae9977b48e1aff118fae3ebffb215b0b4afa887 /src/core/hle/service/nfp/nfp_device.h | |
parent | service: nfc: Implement nfc user (diff) | |
parent | Merge pull request #9238 from german77/cabinet_applet (diff) | |
download | yuzu-db7bcd51ae09c4ef25e08096de563903f61e2380.tar yuzu-db7bcd51ae09c4ef25e08096de563903f61e2380.tar.gz yuzu-db7bcd51ae09c4ef25e08096de563903f61e2380.tar.bz2 yuzu-db7bcd51ae09c4ef25e08096de563903f61e2380.tar.lz yuzu-db7bcd51ae09c4ef25e08096de563903f61e2380.tar.xz yuzu-db7bcd51ae09c4ef25e08096de563903f61e2380.tar.zst yuzu-db7bcd51ae09c4ef25e08096de563903f61e2380.zip |
Diffstat (limited to 'src/core/hle/service/nfp/nfp_device.h')
-rw-r--r-- | src/core/hle/service/nfp/nfp_device.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/hle/service/nfp/nfp_device.h b/src/core/hle/service/nfp/nfp_device.h index 6d8fc1099..b6a46f2ac 100644 --- a/src/core/hle/service/nfp/nfp_device.h +++ b/src/core/hle/service/nfp/nfp_device.h @@ -3,6 +3,7 @@ #pragma once +#include <span> #include <vector> #include "common/common_types.h" @@ -36,7 +37,7 @@ public: void Initialize(); void Finalize(); - Result StartDetection(s32 protocol_); + Result StartDetection(TagProtocol allowed_protocol); Result StopDetection(); Result Mount(MountTarget mount_target); Result Unmount(); @@ -52,6 +53,7 @@ public: Result DeleteAllData(); Result OpenApplicationArea(u32 access_id); + Result GetApplicationAreaId(u32& application_area_id) const; Result GetApplicationArea(std::vector<u8>& data) const; Result SetApplicationArea(std::span<const u8> data); Result CreateApplicationArea(u32 access_id, std::span<const u8> data); @@ -87,7 +89,7 @@ private: bool is_data_moddified{}; bool is_app_area_open{}; - s32 protocol{}; + TagProtocol allowed_protocols{}; s64 current_posix_time{}; MountTarget mount_target{MountTarget::None}; DeviceState device_state{DeviceState::Unavailable}; |