summaryrefslogtreecommitdiff
path: root/src/core/hle/service/nfc
diff options
context:
space:
mode:
authorGravatar Liam2023-02-19 14:42:12 -0500
committerGravatar Liam2023-03-01 10:39:49 -0500
commit65be230fdda302b25447f2f09b06e3238bd09e79 (patch)
tree68250d7bc8151041b236dcd79483df98938952cd /src/core/hle/service/nfc
parentsm:: remove unused member (diff)
downloadyuzu-65be230fdda302b25447f2f09b06e3238bd09e79.tar.gz
yuzu-65be230fdda302b25447f2f09b06e3238bd09e79.tar.xz
yuzu-65be230fdda302b25447f2f09b06e3238bd09e79.zip
service: move hle_ipc from kernel
Diffstat (limited to 'src/core/hle/service/nfc')
-rw-r--r--src/core/hle/service/nfc/mifare_user.cpp30
-rw-r--r--src/core/hle/service/nfc/mifare_user.h28
-rw-r--r--src/core/hle/service/nfc/nfc.cpp10
-rw-r--r--src/core/hle/service/nfc/nfc_device.cpp2
-rw-r--r--src/core/hle/service/nfc/nfc_user.cpp30
-rw-r--r--src/core/hle/service/nfc/nfc_user.h28
6 files changed, 64 insertions, 64 deletions
diff --git a/src/core/hle/service/nfc/mifare_user.cpp b/src/core/hle/service/nfc/mifare_user.cpp
index 51523a3ae..e0bbd46e1 100644
--- a/src/core/hle/service/nfc/mifare_user.cpp
+++ b/src/core/hle/service/nfc/mifare_user.cpp
@@ -4,8 +4,8 @@
4#include "common/logging/log.h" 4#include "common/logging/log.h"
5#include "core/core.h" 5#include "core/core.h"
6#include "core/hid/hid_types.h" 6#include "core/hid/hid_types.h"
7#include "core/hle/ipc_helpers.h"
8#include "core/hle/kernel/k_event.h" 7#include "core/hle/kernel/k_event.h"
8#include "core/hle/service/ipc_helpers.h"
9#include "core/hle/service/nfc/mifare_user.h" 9#include "core/hle/service/nfc/mifare_user.h"
10#include "core/hle/service/nfc/nfc_device.h" 10#include "core/hle/service/nfc/nfc_device.h"
11#include "core/hle/service/nfc/nfc_result.h" 11#include "core/hle/service/nfc/nfc_result.h"
@@ -45,7 +45,7 @@ MFIUser ::~MFIUser() {
45 availability_change_event->Close(); 45 availability_change_event->Close();
46} 46}
47 47
48void MFIUser::Initialize(Kernel::HLERequestContext& ctx) { 48void MFIUser::Initialize(HLERequestContext& ctx) {
49 LOG_INFO(Service_NFC, "called"); 49 LOG_INFO(Service_NFC, "called");
50 50
51 state = State::Initialized; 51 state = State::Initialized;
@@ -58,7 +58,7 @@ void MFIUser::Initialize(Kernel::HLERequestContext& ctx) {
58 rb.Push(ResultSuccess); 58 rb.Push(ResultSuccess);
59} 59}
60 60
61void MFIUser::Finalize(Kernel::HLERequestContext& ctx) { 61void MFIUser::Finalize(HLERequestContext& ctx) {
62 LOG_INFO(Service_NFC, "called"); 62 LOG_INFO(Service_NFC, "called");
63 63
64 state = State::NonInitialized; 64 state = State::NonInitialized;
@@ -71,7 +71,7 @@ void MFIUser::Finalize(Kernel::HLERequestContext& ctx) {
71 rb.Push(ResultSuccess); 71 rb.Push(ResultSuccess);
72} 72}
73 73
74void MFIUser::ListDevices(Kernel::HLERequestContext& ctx) { 74void MFIUser::ListDevices(HLERequestContext& ctx) {
75 LOG_DEBUG(Service_NFC, "called"); 75 LOG_DEBUG(Service_NFC, "called");
76 76
77 if (state == State::NonInitialized) { 77 if (state == State::NonInitialized) {
@@ -117,7 +117,7 @@ void MFIUser::ListDevices(Kernel::HLERequestContext& ctx) {
117 rb.Push(static_cast<s32>(nfp_devices.size())); 117 rb.Push(static_cast<s32>(nfp_devices.size()));
118} 118}
119 119
120void MFIUser::StartDetection(Kernel::HLERequestContext& ctx) { 120void MFIUser::StartDetection(HLERequestContext& ctx) {
121 IPC::RequestParser rp{ctx}; 121 IPC::RequestParser rp{ctx};
122 const auto device_handle{rp.Pop<u64>()}; 122 const auto device_handle{rp.Pop<u64>()};
123 LOG_INFO(Service_NFC, "called, device_handle={}", device_handle); 123 LOG_INFO(Service_NFC, "called, device_handle={}", device_handle);
@@ -141,7 +141,7 @@ void MFIUser::StartDetection(Kernel::HLERequestContext& ctx) {
141 rb.Push(result); 141 rb.Push(result);
142} 142}
143 143
144void MFIUser::StopDetection(Kernel::HLERequestContext& ctx) { 144void MFIUser::StopDetection(HLERequestContext& ctx) {
145 IPC::RequestParser rp{ctx}; 145 IPC::RequestParser rp{ctx};
146 const auto device_handle{rp.Pop<u64>()}; 146 const auto device_handle{rp.Pop<u64>()};
147 LOG_INFO(Service_NFC, "called, device_handle={}", device_handle); 147 LOG_INFO(Service_NFC, "called, device_handle={}", device_handle);
@@ -165,7 +165,7 @@ void MFIUser::StopDetection(Kernel::HLERequestContext& ctx) {
165 rb.Push(result); 165 rb.Push(result);
166} 166}
167 167
168void MFIUser::Read(Kernel::HLERequestContext& ctx) { 168void MFIUser::Read(HLERequestContext& ctx) {
169 IPC::RequestParser rp{ctx}; 169 IPC::RequestParser rp{ctx};
170 const auto device_handle{rp.Pop<u64>()}; 170 const auto device_handle{rp.Pop<u64>()};
171 const auto buffer{ctx.ReadBuffer()}; 171 const auto buffer{ctx.ReadBuffer()};
@@ -206,7 +206,7 @@ void MFIUser::Read(Kernel::HLERequestContext& ctx) {
206 rb.Push(result); 206 rb.Push(result);
207} 207}
208 208
209void MFIUser::Write(Kernel::HLERequestContext& ctx) { 209void MFIUser::Write(HLERequestContext& ctx) {
210 IPC::RequestParser rp{ctx}; 210 IPC::RequestParser rp{ctx};
211 const auto device_handle{rp.Pop<u64>()}; 211 const auto device_handle{rp.Pop<u64>()};
212 const auto buffer{ctx.ReadBuffer()}; 212 const auto buffer{ctx.ReadBuffer()};
@@ -250,7 +250,7 @@ void MFIUser::Write(Kernel::HLERequestContext& ctx) {
250 rb.Push(result); 250 rb.Push(result);
251} 251}
252 252
253void MFIUser::GetTagInfo(Kernel::HLERequestContext& ctx) { 253void MFIUser::GetTagInfo(HLERequestContext& ctx) {
254 IPC::RequestParser rp{ctx}; 254 IPC::RequestParser rp{ctx};
255 const auto device_handle{rp.Pop<u64>()}; 255 const auto device_handle{rp.Pop<u64>()};
256 LOG_INFO(Service_NFC, "called, device_handle={}", device_handle); 256 LOG_INFO(Service_NFC, "called, device_handle={}", device_handle);
@@ -276,7 +276,7 @@ void MFIUser::GetTagInfo(Kernel::HLERequestContext& ctx) {
276 rb.Push(result); 276 rb.Push(result);
277} 277}
278 278
279void MFIUser::GetActivateEventHandle(Kernel::HLERequestContext& ctx) { 279void MFIUser::GetActivateEventHandle(HLERequestContext& ctx) {
280 IPC::RequestParser rp{ctx}; 280 IPC::RequestParser rp{ctx};
281 const auto device_handle{rp.Pop<u64>()}; 281 const auto device_handle{rp.Pop<u64>()};
282 LOG_DEBUG(Service_NFC, "called, device_handle={}", device_handle); 282 LOG_DEBUG(Service_NFC, "called, device_handle={}", device_handle);
@@ -300,7 +300,7 @@ void MFIUser::GetActivateEventHandle(Kernel::HLERequestContext& ctx) {
300 rb.PushCopyObjects(device.value()->GetActivateEvent()); 300 rb.PushCopyObjects(device.value()->GetActivateEvent());
301} 301}
302 302
303void MFIUser::GetDeactivateEventHandle(Kernel::HLERequestContext& ctx) { 303void MFIUser::GetDeactivateEventHandle(HLERequestContext& ctx) {
304 IPC::RequestParser rp{ctx}; 304 IPC::RequestParser rp{ctx};
305 const auto device_handle{rp.Pop<u64>()}; 305 const auto device_handle{rp.Pop<u64>()};
306 LOG_DEBUG(Service_NFC, "called, device_handle={}", device_handle); 306 LOG_DEBUG(Service_NFC, "called, device_handle={}", device_handle);
@@ -324,7 +324,7 @@ void MFIUser::GetDeactivateEventHandle(Kernel::HLERequestContext& ctx) {
324 rb.PushCopyObjects(device.value()->GetDeactivateEvent()); 324 rb.PushCopyObjects(device.value()->GetDeactivateEvent());
325} 325}
326 326
327void MFIUser::GetState(Kernel::HLERequestContext& ctx) { 327void MFIUser::GetState(HLERequestContext& ctx) {
328 LOG_DEBUG(Service_NFC, "called"); 328 LOG_DEBUG(Service_NFC, "called");
329 329
330 IPC::ResponseBuilder rb{ctx, 3}; 330 IPC::ResponseBuilder rb{ctx, 3};
@@ -332,7 +332,7 @@ void MFIUser::GetState(Kernel::HLERequestContext& ctx) {
332 rb.PushEnum(state); 332 rb.PushEnum(state);
333} 333}
334 334
335void MFIUser::GetDeviceState(Kernel::HLERequestContext& ctx) { 335void MFIUser::GetDeviceState(HLERequestContext& ctx) {
336 IPC::RequestParser rp{ctx}; 336 IPC::RequestParser rp{ctx};
337 const auto device_handle{rp.Pop<u64>()}; 337 const auto device_handle{rp.Pop<u64>()};
338 LOG_DEBUG(Service_NFC, "called, device_handle={}", device_handle); 338 LOG_DEBUG(Service_NFC, "called, device_handle={}", device_handle);
@@ -350,7 +350,7 @@ void MFIUser::GetDeviceState(Kernel::HLERequestContext& ctx) {
350 rb.PushEnum(device.value()->GetCurrentState()); 350 rb.PushEnum(device.value()->GetCurrentState());
351} 351}
352 352
353void MFIUser::GetNpadId(Kernel::HLERequestContext& ctx) { 353void MFIUser::GetNpadId(HLERequestContext& ctx) {
354 IPC::RequestParser rp{ctx}; 354 IPC::RequestParser rp{ctx};
355 const auto device_handle{rp.Pop<u64>()}; 355 const auto device_handle{rp.Pop<u64>()};
356 LOG_DEBUG(Service_NFC, "called, device_handle={}", device_handle); 356 LOG_DEBUG(Service_NFC, "called, device_handle={}", device_handle);
@@ -374,7 +374,7 @@ void MFIUser::GetNpadId(Kernel::HLERequestContext& ctx) {
374 rb.PushEnum(device.value()->GetNpadId()); 374 rb.PushEnum(device.value()->GetNpadId());
375} 375}
376 376
377void MFIUser::GetAvailabilityChangeEventHandle(Kernel::HLERequestContext& ctx) { 377void MFIUser::GetAvailabilityChangeEventHandle(HLERequestContext& ctx) {
378 LOG_INFO(Service_NFC, "called"); 378 LOG_INFO(Service_NFC, "called");
379 379
380 if (state == State::NonInitialized) { 380 if (state == State::NonInitialized) {
diff --git a/src/core/hle/service/nfc/mifare_user.h b/src/core/hle/service/nfc/mifare_user.h
index 0e0638cb6..9701f1d7f 100644
--- a/src/core/hle/service/nfc/mifare_user.h
+++ b/src/core/hle/service/nfc/mifare_user.h
@@ -24,20 +24,20 @@ private:
24 Initialized, 24 Initialized,
25 }; 25 };
26 26
27 void Initialize(Kernel::HLERequestContext& ctx); 27 void Initialize(HLERequestContext& ctx);
28 void Finalize(Kernel::HLERequestContext& ctx); 28 void Finalize(HLERequestContext& ctx);
29 void ListDevices(Kernel::HLERequestContext& ctx); 29 void ListDevices(HLERequestContext& ctx);
30 void StartDetection(Kernel::HLERequestContext& ctx); 30 void StartDetection(HLERequestContext& ctx);
31 void StopDetection(Kernel::HLERequestContext& ctx); 31 void StopDetection(HLERequestContext& ctx);
32 void Read(Kernel::HLERequestContext& ctx); 32 void Read(HLERequestContext& ctx);
33 void Write(Kernel::HLERequestContext& ctx); 33 void Write(HLERequestContext& ctx);
34 void GetTagInfo(Kernel::HLERequestContext& ctx); 34 void GetTagInfo(HLERequestContext& ctx);
35 void GetActivateEventHandle(Kernel::HLERequestContext& ctx); 35 void GetActivateEventHandle(HLERequestContext& ctx);
36 void GetDeactivateEventHandle(Kernel::HLERequestContext& ctx); 36 void GetDeactivateEventHandle(HLERequestContext& ctx);
37 void GetState(Kernel::HLERequestContext& ctx); 37 void GetState(HLERequestContext& ctx);
38 void GetDeviceState(Kernel::HLERequestContext& ctx); 38 void GetDeviceState(HLERequestContext& ctx);
39 void GetNpadId(Kernel::HLERequestContext& ctx); 39 void GetNpadId(HLERequestContext& ctx);
40 void GetAvailabilityChangeEventHandle(Kernel::HLERequestContext& ctx); 40 void GetAvailabilityChangeEventHandle(HLERequestContext& ctx);
41 41
42 std::optional<std::shared_ptr<NfcDevice>> GetNfcDevice(u64 handle); 42 std::optional<std::shared_ptr<NfcDevice>> GetNfcDevice(u64 handle);
43 43
diff --git a/src/core/hle/service/nfc/nfc.cpp b/src/core/hle/service/nfc/nfc.cpp
index 34612b9df..6595e34ed 100644
--- a/src/core/hle/service/nfc/nfc.cpp
+++ b/src/core/hle/service/nfc/nfc.cpp
@@ -5,7 +5,7 @@
5 5
6#include "common/logging/log.h" 6#include "common/logging/log.h"
7#include "common/settings.h" 7#include "common/settings.h"
8#include "core/hle/ipc_helpers.h" 8#include "core/hle/service/ipc_helpers.h"
9#include "core/hle/service/nfc/mifare_user.h" 9#include "core/hle/service/nfc/mifare_user.h"
10#include "core/hle/service/nfc/nfc.h" 10#include "core/hle/service/nfc/nfc.h"
11#include "core/hle/service/nfc/nfc_user.h" 11#include "core/hle/service/nfc/nfc_user.h"
@@ -42,7 +42,7 @@ public:
42 } 42 }
43 43
44private: 44private:
45 void CreateAmInterface(Kernel::HLERequestContext& ctx) { 45 void CreateAmInterface(HLERequestContext& ctx) {
46 LOG_DEBUG(Service_NFC, "called"); 46 LOG_DEBUG(Service_NFC, "called");
47 47
48 IPC::ResponseBuilder rb{ctx, 2, 0, 1}; 48 IPC::ResponseBuilder rb{ctx, 2, 0, 1};
@@ -64,7 +64,7 @@ public:
64 } 64 }
65 65
66private: 66private:
67 void CreateUserInterface(Kernel::HLERequestContext& ctx) { 67 void CreateUserInterface(HLERequestContext& ctx) {
68 LOG_DEBUG(Service_NFC, "called"); 68 LOG_DEBUG(Service_NFC, "called");
69 69
70 IPC::ResponseBuilder rb{ctx, 2, 0, 1}; 70 IPC::ResponseBuilder rb{ctx, 2, 0, 1};
@@ -86,7 +86,7 @@ public:
86 } 86 }
87 87
88private: 88private:
89 void CreateUserInterface(Kernel::HLERequestContext& ctx) { 89 void CreateUserInterface(HLERequestContext& ctx) {
90 LOG_DEBUG(Service_NFC, "called"); 90 LOG_DEBUG(Service_NFC, "called");
91 91
92 IPC::ResponseBuilder rb{ctx, 2, 0, 1}; 92 IPC::ResponseBuilder rb{ctx, 2, 0, 1};
@@ -145,7 +145,7 @@ public:
145 } 145 }
146 146
147private: 147private:
148 void CreateSystemInterface(Kernel::HLERequestContext& ctx) { 148 void CreateSystemInterface(HLERequestContext& ctx) {
149 LOG_DEBUG(Service_NFC, "called"); 149 LOG_DEBUG(Service_NFC, "called");
150 150
151 IPC::ResponseBuilder rb{ctx, 2, 0, 1}; 151 IPC::ResponseBuilder rb{ctx, 2, 0, 1};
diff --git a/src/core/hle/service/nfc/nfc_device.cpp b/src/core/hle/service/nfc/nfc_device.cpp
index 9a3234e8c..3f17d0c7a 100644
--- a/src/core/hle/service/nfc/nfc_device.cpp
+++ b/src/core/hle/service/nfc/nfc_device.cpp
@@ -7,8 +7,8 @@
7#include "core/hid/emulated_controller.h" 7#include "core/hid/emulated_controller.h"
8#include "core/hid/hid_core.h" 8#include "core/hid/hid_core.h"
9#include "core/hid/hid_types.h" 9#include "core/hid/hid_types.h"
10#include "core/hle/ipc_helpers.h"
11#include "core/hle/kernel/k_event.h" 10#include "core/hle/kernel/k_event.h"
11#include "core/hle/service/ipc_helpers.h"
12#include "core/hle/service/nfc/nfc_device.h" 12#include "core/hle/service/nfc/nfc_device.h"
13#include "core/hle/service/nfc/nfc_result.h" 13#include "core/hle/service/nfc/nfc_result.h"
14#include "core/hle/service/nfc/nfc_user.h" 14#include "core/hle/service/nfc/nfc_user.h"
diff --git a/src/core/hle/service/nfc/nfc_user.cpp b/src/core/hle/service/nfc/nfc_user.cpp
index 89aa6b3f5..7c162a4f3 100644
--- a/src/core/hle/service/nfc/nfc_user.cpp
+++ b/src/core/hle/service/nfc/nfc_user.cpp
@@ -4,8 +4,8 @@
4#include "common/logging/log.h" 4#include "common/logging/log.h"
5#include "core/core.h" 5#include "core/core.h"
6#include "core/hid/hid_types.h" 6#include "core/hid/hid_types.h"
7#include "core/hle/ipc_helpers.h"
8#include "core/hle/kernel/k_event.h" 7#include "core/hle/kernel/k_event.h"
8#include "core/hle/service/ipc_helpers.h"
9#include "core/hle/service/nfc/nfc_device.h" 9#include "core/hle/service/nfc/nfc_device.h"
10#include "core/hle/service/nfc/nfc_result.h" 10#include "core/hle/service/nfc/nfc_result.h"
11#include "core/hle/service/nfc/nfc_user.h" 11#include "core/hle/service/nfc/nfc_user.h"
@@ -54,7 +54,7 @@ IUser ::~IUser() {
54 availability_change_event->Close(); 54 availability_change_event->Close();
55} 55}
56 56
57void IUser::Initialize(Kernel::HLERequestContext& ctx) { 57void IUser::Initialize(HLERequestContext& ctx) {
58 LOG_INFO(Service_NFC, "called"); 58 LOG_INFO(Service_NFC, "called");
59 59
60 state = State::Initialized; 60 state = State::Initialized;
@@ -67,7 +67,7 @@ void IUser::Initialize(Kernel::HLERequestContext& ctx) {
67 rb.Push(ResultSuccess); 67 rb.Push(ResultSuccess);
68} 68}
69 69
70void IUser::Finalize(Kernel::HLERequestContext& ctx) { 70void IUser::Finalize(HLERequestContext& ctx) {
71 LOG_INFO(Service_NFC, "called"); 71 LOG_INFO(Service_NFC, "called");
72 72
73 state = State::NonInitialized; 73 state = State::NonInitialized;
@@ -80,7 +80,7 @@ void IUser::Finalize(Kernel::HLERequestContext& ctx) {
80 rb.Push(ResultSuccess); 80 rb.Push(ResultSuccess);
81} 81}
82 82
83void IUser::GetState(Kernel::HLERequestContext& ctx) { 83void IUser::GetState(HLERequestContext& ctx) {
84 LOG_DEBUG(Service_NFC, "called"); 84 LOG_DEBUG(Service_NFC, "called");
85 85
86 IPC::ResponseBuilder rb{ctx, 3}; 86 IPC::ResponseBuilder rb{ctx, 3};
@@ -88,7 +88,7 @@ void IUser::GetState(Kernel::HLERequestContext& ctx) {
88 rb.PushEnum(state); 88 rb.PushEnum(state);
89} 89}
90 90
91void IUser::IsNfcEnabled(Kernel::HLERequestContext& ctx) { 91void IUser::IsNfcEnabled(HLERequestContext& ctx) {
92 LOG_DEBUG(Service_NFC, "called"); 92 LOG_DEBUG(Service_NFC, "called");
93 93
94 IPC::ResponseBuilder rb{ctx, 3}; 94 IPC::ResponseBuilder rb{ctx, 3};
@@ -96,7 +96,7 @@ void IUser::IsNfcEnabled(Kernel::HLERequestContext& ctx) {
96 rb.Push(state != State::NonInitialized); 96 rb.Push(state != State::NonInitialized);
97} 97}
98 98
99void IUser::ListDevices(Kernel::HLERequestContext& ctx) { 99void IUser::ListDevices(HLERequestContext& ctx) {
100 LOG_DEBUG(Service_NFC, "called"); 100 LOG_DEBUG(Service_NFC, "called");
101 101
102 if (state == State::NonInitialized) { 102 if (state == State::NonInitialized) {
@@ -142,7 +142,7 @@ void IUser::ListDevices(Kernel::HLERequestContext& ctx) {
142 rb.Push(static_cast<s32>(nfp_devices.size())); 142 rb.Push(static_cast<s32>(nfp_devices.size()));
143} 143}
144 144
145void IUser::GetDeviceState(Kernel::HLERequestContext& ctx) { 145void IUser::GetDeviceState(HLERequestContext& ctx) {
146 IPC::RequestParser rp{ctx}; 146 IPC::RequestParser rp{ctx};
147 const auto device_handle{rp.Pop<u64>()}; 147 const auto device_handle{rp.Pop<u64>()};
148 LOG_DEBUG(Service_NFC, "called, device_handle={}", device_handle); 148 LOG_DEBUG(Service_NFC, "called, device_handle={}", device_handle);
@@ -160,7 +160,7 @@ void IUser::GetDeviceState(Kernel::HLERequestContext& ctx) {
160 rb.PushEnum(device.value()->GetCurrentState()); 160 rb.PushEnum(device.value()->GetCurrentState());
161} 161}
162 162
163void IUser::GetNpadId(Kernel::HLERequestContext& ctx) { 163void IUser::GetNpadId(HLERequestContext& ctx) {
164 IPC::RequestParser rp{ctx}; 164 IPC::RequestParser rp{ctx};
165 const auto device_handle{rp.Pop<u64>()}; 165 const auto device_handle{rp.Pop<u64>()};
166 LOG_DEBUG(Service_NFC, "called, device_handle={}", device_handle); 166 LOG_DEBUG(Service_NFC, "called, device_handle={}", device_handle);
@@ -184,7 +184,7 @@ void IUser::GetNpadId(Kernel::HLERequestContext& ctx) {
184 rb.PushEnum(device.value()->GetNpadId()); 184 rb.PushEnum(device.value()->GetNpadId());
185} 185}
186 186
187void IUser::AttachAvailabilityChangeEvent(Kernel::HLERequestContext& ctx) { 187void IUser::AttachAvailabilityChangeEvent(HLERequestContext& ctx) {
188 LOG_INFO(Service_NFC, "called"); 188 LOG_INFO(Service_NFC, "called");
189 189
190 if (state == State::NonInitialized) { 190 if (state == State::NonInitialized) {
@@ -198,7 +198,7 @@ void IUser::AttachAvailabilityChangeEvent(Kernel::HLERequestContext& ctx) {
198 rb.PushCopyObjects(availability_change_event->GetReadableEvent()); 198 rb.PushCopyObjects(availability_change_event->GetReadableEvent());
199} 199}
200 200
201void IUser::StartDetection(Kernel::HLERequestContext& ctx) { 201void IUser::StartDetection(HLERequestContext& ctx) {
202 IPC::RequestParser rp{ctx}; 202 IPC::RequestParser rp{ctx};
203 const auto device_handle{rp.Pop<u64>()}; 203 const auto device_handle{rp.Pop<u64>()};
204 const auto nfp_protocol{rp.PopEnum<NFP::TagProtocol>()}; 204 const auto nfp_protocol{rp.PopEnum<NFP::TagProtocol>()};
@@ -223,7 +223,7 @@ void IUser::StartDetection(Kernel::HLERequestContext& ctx) {
223 rb.Push(result); 223 rb.Push(result);
224} 224}
225 225
226void IUser::StopDetection(Kernel::HLERequestContext& ctx) { 226void IUser::StopDetection(HLERequestContext& ctx) {
227 IPC::RequestParser rp{ctx}; 227 IPC::RequestParser rp{ctx};
228 const auto device_handle{rp.Pop<u64>()}; 228 const auto device_handle{rp.Pop<u64>()};
229 LOG_INFO(Service_NFC, "called, device_handle={}", device_handle); 229 LOG_INFO(Service_NFC, "called, device_handle={}", device_handle);
@@ -247,7 +247,7 @@ void IUser::StopDetection(Kernel::HLERequestContext& ctx) {
247 rb.Push(result); 247 rb.Push(result);
248} 248}
249 249
250void IUser::GetTagInfo(Kernel::HLERequestContext& ctx) { 250void IUser::GetTagInfo(HLERequestContext& ctx) {
251 IPC::RequestParser rp{ctx}; 251 IPC::RequestParser rp{ctx};
252 const auto device_handle{rp.Pop<u64>()}; 252 const auto device_handle{rp.Pop<u64>()};
253 LOG_INFO(Service_NFC, "called, device_handle={}", device_handle); 253 LOG_INFO(Service_NFC, "called, device_handle={}", device_handle);
@@ -273,7 +273,7 @@ void IUser::GetTagInfo(Kernel::HLERequestContext& ctx) {
273 rb.Push(result); 273 rb.Push(result);
274} 274}
275 275
276void IUser::AttachActivateEvent(Kernel::HLERequestContext& ctx) { 276void IUser::AttachActivateEvent(HLERequestContext& ctx) {
277 IPC::RequestParser rp{ctx}; 277 IPC::RequestParser rp{ctx};
278 const auto device_handle{rp.Pop<u64>()}; 278 const auto device_handle{rp.Pop<u64>()};
279 LOG_DEBUG(Service_NFC, "called, device_handle={}", device_handle); 279 LOG_DEBUG(Service_NFC, "called, device_handle={}", device_handle);
@@ -297,7 +297,7 @@ void IUser::AttachActivateEvent(Kernel::HLERequestContext& ctx) {
297 rb.PushCopyObjects(device.value()->GetActivateEvent()); 297 rb.PushCopyObjects(device.value()->GetActivateEvent());
298} 298}
299 299
300void IUser::AttachDeactivateEvent(Kernel::HLERequestContext& ctx) { 300void IUser::AttachDeactivateEvent(HLERequestContext& ctx) {
301 IPC::RequestParser rp{ctx}; 301 IPC::RequestParser rp{ctx};
302 const auto device_handle{rp.Pop<u64>()}; 302 const auto device_handle{rp.Pop<u64>()};
303 LOG_DEBUG(Service_NFC, "called, device_handle={}", device_handle); 303 LOG_DEBUG(Service_NFC, "called, device_handle={}", device_handle);
@@ -321,7 +321,7 @@ void IUser::AttachDeactivateEvent(Kernel::HLERequestContext& ctx) {
321 rb.PushCopyObjects(device.value()->GetDeactivateEvent()); 321 rb.PushCopyObjects(device.value()->GetDeactivateEvent());
322} 322}
323 323
324void IUser::SendCommandByPassThrough(Kernel::HLERequestContext& ctx) { 324void IUser::SendCommandByPassThrough(HLERequestContext& ctx) {
325 IPC::RequestParser rp{ctx}; 325 IPC::RequestParser rp{ctx};
326 const auto device_handle{rp.Pop<u64>()}; 326 const auto device_handle{rp.Pop<u64>()};
327 const auto timeout{rp.PopRaw<Time::Clock::TimeSpanType>()}; 327 const auto timeout{rp.PopRaw<Time::Clock::TimeSpanType>()};
diff --git a/src/core/hle/service/nfc/nfc_user.h b/src/core/hle/service/nfc/nfc_user.h
index a5a4f12f9..aee046ae8 100644
--- a/src/core/hle/service/nfc/nfc_user.h
+++ b/src/core/hle/service/nfc/nfc_user.h
@@ -24,20 +24,20 @@ private:
24 Initialized, 24 Initialized,
25 }; 25 };
26 26
27 void Initialize(Kernel::HLERequestContext& ctx); 27 void Initialize(HLERequestContext& ctx);
28 void Finalize(Kernel::HLERequestContext& ctx); 28 void Finalize(HLERequestContext& ctx);
29 void GetState(Kernel::HLERequestContext& ctx); 29 void GetState(HLERequestContext& ctx);
30 void IsNfcEnabled(Kernel::HLERequestContext& ctx); 30 void IsNfcEnabled(HLERequestContext& ctx);
31 void ListDevices(Kernel::HLERequestContext& ctx); 31 void ListDevices(HLERequestContext& ctx);
32 void GetDeviceState(Kernel::HLERequestContext& ctx); 32 void GetDeviceState(HLERequestContext& ctx);
33 void GetNpadId(Kernel::HLERequestContext& ctx); 33 void GetNpadId(HLERequestContext& ctx);
34 void AttachAvailabilityChangeEvent(Kernel::HLERequestContext& ctx); 34 void AttachAvailabilityChangeEvent(HLERequestContext& ctx);
35 void StartDetection(Kernel::HLERequestContext& ctx); 35 void StartDetection(HLERequestContext& ctx);
36 void StopDetection(Kernel::HLERequestContext& ctx); 36 void StopDetection(HLERequestContext& ctx);
37 void GetTagInfo(Kernel::HLERequestContext& ctx); 37 void GetTagInfo(HLERequestContext& ctx);
38 void AttachActivateEvent(Kernel::HLERequestContext& ctx); 38 void AttachActivateEvent(HLERequestContext& ctx);
39 void AttachDeactivateEvent(Kernel::HLERequestContext& ctx); 39 void AttachDeactivateEvent(HLERequestContext& ctx);
40 void SendCommandByPassThrough(Kernel::HLERequestContext& ctx); 40 void SendCommandByPassThrough(HLERequestContext& ctx);
41 41
42 std::optional<std::shared_ptr<NfcDevice>> GetNfcDevice(u64 handle); 42 std::optional<std::shared_ptr<NfcDevice>> GetNfcDevice(u64 handle);
43 43