mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-11-05 05:35:07 +01:00
Stub nfp::IUser::ListDevices
and nfp::IUser::GetState
This commit is contained in:
parent
7d518cba2b
commit
873ed641ea
@ -10,4 +10,14 @@ namespace skyline::service::nfp {
|
||||
Result IUser::Initialize(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) {
|
||||
return {};
|
||||
}
|
||||
|
||||
Result IUser::ListDevices(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) {
|
||||
response.Push<u32>(0);
|
||||
return {};
|
||||
}
|
||||
|
||||
Result IUser::GetState(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) {
|
||||
response.Push<u32>(0);
|
||||
return {};
|
||||
}
|
||||
}
|
||||
|
@ -3,12 +3,12 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <services/serviceman.h>
|
||||
#include <services/base_service.h>
|
||||
|
||||
namespace skyline::service::nfp {
|
||||
/**
|
||||
* @brief IUser is used by applications to access NFC devices
|
||||
* @url https://switchbrew.org/wiki/NFC_services#IUser
|
||||
* @brief IUser is used by applications to access NFP (Near Field Proximity) devices
|
||||
* @url https://switchbrew.org/wiki/NFC_services#IUser_3
|
||||
*/
|
||||
class IUser : public BaseService {
|
||||
public:
|
||||
@ -19,8 +19,22 @@ namespace skyline::service::nfp {
|
||||
*/
|
||||
Result Initialize(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
|
||||
|
||||
/*
|
||||
* @brief Lists available NFP devices
|
||||
* @url https://switchbrew.org/wiki/NFC_services#ListDevices
|
||||
*/
|
||||
Result ListDevices(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
|
||||
|
||||
/*
|
||||
* @brief Return the state of the NFP service
|
||||
* @url https://switchbrew.org/wiki/NFC_services#GetState_2
|
||||
*/
|
||||
Result GetState(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
|
||||
|
||||
SERVICE_DECL(
|
||||
SFUNC(0x0, IUser, Initialize)
|
||||
SFUNC(0x0, IUser, Initialize),
|
||||
SFUNC(0x2, IUser, ListDevices),
|
||||
SFUNC(0x13, IUser, GetState)
|
||||
)
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user