|
|
@ -18,8 +18,8 @@
|
|
|
|
namespace Service::NFP {
|
|
|
|
namespace Service::NFP {
|
|
|
|
|
|
|
|
|
|
|
|
namespace ErrCodes {
|
|
|
|
namespace ErrCodes {
|
|
|
|
constexpr ResultCode ERR_TAG_FAILED(ErrorModule::NFP,
|
|
|
|
[[maybe_unused]] constexpr ResultCode ERR_TAG_FAILED(ErrorModule::NFP,
|
|
|
|
-1); // TODO(ogniK): Find the actual error code
|
|
|
|
-1); // TODO(ogniK): Find the actual error code
|
|
|
|
constexpr ResultCode ERR_NO_APPLICATION_AREA(ErrorModule::NFP, 152);
|
|
|
|
constexpr ResultCode ERR_NO_APPLICATION_AREA(ErrorModule::NFP, 152);
|
|
|
|
} // namespace ErrCodes
|
|
|
|
} // namespace ErrCodes
|
|
|
|
|
|
|
|
|
|
|
@ -35,7 +35,7 @@ Module::Interface::~Interface() = default;
|
|
|
|
class IUser final : public ServiceFramework<IUser> {
|
|
|
|
class IUser final : public ServiceFramework<IUser> {
|
|
|
|
public:
|
|
|
|
public:
|
|
|
|
IUser(Module::Interface& nfp_interface, Core::System& system)
|
|
|
|
IUser(Module::Interface& nfp_interface, Core::System& system)
|
|
|
|
: ServiceFramework("NFP::IUser"), nfp_interface(nfp_interface), system(system) {
|
|
|
|
: ServiceFramework("NFP::IUser"), nfp_interface(nfp_interface) {
|
|
|
|
static const FunctionInfo functions[] = {
|
|
|
|
static const FunctionInfo functions[] = {
|
|
|
|
{0, &IUser::Initialize, "Initialize"},
|
|
|
|
{0, &IUser::Initialize, "Initialize"},
|
|
|
|
{1, &IUser::Finalize, "Finalize"},
|
|
|
|
{1, &IUser::Finalize, "Finalize"},
|
|
|
@ -183,6 +183,8 @@ private:
|
|
|
|
case DeviceState::TagRemoved:
|
|
|
|
case DeviceState::TagRemoved:
|
|
|
|
device_state = DeviceState::Initialized;
|
|
|
|
device_state = DeviceState::Initialized;
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
|
|
|
|
default:
|
|
|
|
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
IPC::ResponseBuilder rb{ctx, 2};
|
|
|
|
IPC::ResponseBuilder rb{ctx, 2};
|
|
|
|
rb.Push(RESULT_SUCCESS);
|
|
|
|
rb.Push(RESULT_SUCCESS);
|
|
|
@ -324,7 +326,6 @@ private:
|
|
|
|
Kernel::EventPair deactivate_event;
|
|
|
|
Kernel::EventPair deactivate_event;
|
|
|
|
Kernel::EventPair availability_change_event;
|
|
|
|
Kernel::EventPair availability_change_event;
|
|
|
|
const Module::Interface& nfp_interface;
|
|
|
|
const Module::Interface& nfp_interface;
|
|
|
|
Core::System& system;
|
|
|
|
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
void Module::Interface::CreateUserInterface(Kernel::HLERequestContext& ctx) {
|
|
|
|
void Module::Interface::CreateUserInterface(Kernel::HLERequestContext& ctx) {
|
|
|
|