2026-09-25 15:53:30

Signed-off-by: lizzie <lizzie@eden-emu.dev>
This commit is contained in:
lizzie
2026-09-25 15:53:30 +00:00
parent 9375aeaacf
commit 1f784d5541
69 changed files with 2404 additions and 2404 deletions
+68 -68
View File
@@ -21,28 +21,28 @@ public:
explicit IUser(Core::System& system_) : NfcInterface(system_, "NFC::IUser", BackendType::Nfc) {
// clang-format off
static const FunctionInfo functions[] = {
{0, &NfcInterface::Initialize, "InitializeOld"},
{1, &NfcInterface::Finalize, "FinalizeOld"},
{2, &NfcInterface::GetState, "GetStateOld"},
{3, &NfcInterface::IsNfcEnabled, "IsNfcEnabledOld"},
{400, &NfcInterface::Initialize, "Initialize"},
{401, &NfcInterface::Finalize, "Finalize"},
{402, &NfcInterface::GetState, "GetState"},
{403, &NfcInterface::IsNfcEnabled, "IsNfcEnabled"},
{404, &NfcInterface::ListDevices, "ListDevices"},
{405, &NfcInterface::GetDeviceState, "GetDeviceState"},
{406, &NfcInterface::GetNpadId, "GetNpadId"},
{407, &NfcInterface::AttachAvailabilityChangeEvent, "AttachAvailabilityChangeEvent"},
{408, &NfcInterface::StartDetection, "StartDetection"},
{409, &NfcInterface::StopDetection, "StopDetection"},
{410, &NfcInterface::GetTagInfo, "GetTagInfo"},
{411, &NfcInterface::AttachActivateEvent, "AttachActivateEvent"},
{412, &NfcInterface::AttachDeactivateEvent, "AttachDeactivateEvent"},
{1000, &NfcInterface::ReadMifare, "ReadMifare"},
{1001, &NfcInterface::WriteMifare ,"WriteMifare"},
{1300, &NfcInterface::SendCommandByPassThrough, "SendCommandByPassThrough"},
{1301, nullptr, "KeepPassThroughSession"},
{1302, nullptr, "ReleasePassThroughSession"}
FunctionInfo{0, &NfcInterface::Initialize, "InitializeOld"},
FunctionInfo{1, &NfcInterface::Finalize, "FinalizeOld"},
FunctionInfo{2, &NfcInterface::GetState, "GetStateOld"},
FunctionInfo{3, &NfcInterface::IsNfcEnabled, "IsNfcEnabledOld"},
FunctionInfo{400, &NfcInterface::Initialize, "Initialize"},
FunctionInfo{401, &NfcInterface::Finalize, "Finalize"},
FunctionInfo{402, &NfcInterface::GetState, "GetState"},
FunctionInfo{403, &NfcInterface::IsNfcEnabled, "IsNfcEnabled"},
FunctionInfo{404, &NfcInterface::ListDevices, "ListDevices"},
FunctionInfo{405, &NfcInterface::GetDeviceState, "GetDeviceState"},
FunctionInfo{406, &NfcInterface::GetNpadId, "GetNpadId"},
FunctionInfo{407, &NfcInterface::AttachAvailabilityChangeEvent, "AttachAvailabilityChangeEvent"},
FunctionInfo{408, &NfcInterface::StartDetection, "StartDetection"},
FunctionInfo{409, &NfcInterface::StopDetection, "StopDetection"},
FunctionInfo{410, &NfcInterface::GetTagInfo, "GetTagInfo"},
FunctionInfo{411, &NfcInterface::AttachActivateEvent, "AttachActivateEvent"},
FunctionInfo{412, &NfcInterface::AttachDeactivateEvent, "AttachDeactivateEvent"},
FunctionInfo{1000, &NfcInterface::ReadMifare, "ReadMifare"},
FunctionInfo{1001, &NfcInterface::WriteMifare ,"WriteMifare"},
FunctionInfo{1300, &NfcInterface::SendCommandByPassThrough, "SendCommandByPassThrough"},
FunctionInfo{1301, nullptr, "KeepPassThroughSession"},
FunctionInfo{1302, nullptr, "ReleasePassThroughSession"}
};
// clang-format on
@@ -56,31 +56,31 @@ public:
: NfcInterface{system_, "NFC::ISystem", BackendType::Nfc} {
// clang-format off
static const FunctionInfo functions[] = {
{0, &NfcInterface::Initialize, "InitializeOld"},
{1, &NfcInterface::Finalize, "FinalizeOld"},
{2, &NfcInterface::GetState, "GetStateOld"},
{3, &NfcInterface::IsNfcEnabled, "IsNfcEnabledOld"},
{100, &NfcInterface::SetNfcEnabled, "SetNfcEnabledOld"},
{400, &NfcInterface::Initialize, "Initialize"},
{401, &NfcInterface::Finalize, "Finalize"},
{402, &NfcInterface::GetState, "GetState"},
{403, &NfcInterface::IsNfcEnabled, "IsNfcEnabled"},
{404, &NfcInterface::ListDevices, "ListDevices"},
{405, &NfcInterface::GetDeviceState, "GetDeviceState"},
{406, &NfcInterface::GetNpadId, "GetNpadId"},
{407, &NfcInterface::AttachAvailabilityChangeEvent, "AttachAvailabilityChangeEvent"},
{408, &NfcInterface::StartDetection, "StartDetection"},
{409, &NfcInterface::StopDetection, "StopDetection"},
{410, &NfcInterface::GetTagInfo, "GetTagInfo"},
{411, &NfcInterface::AttachActivateEvent, "AttachActivateEvent"},
{412, &NfcInterface::AttachDeactivateEvent, "AttachDeactivateEvent"},
{500, &NfcInterface::SetNfcEnabled, "SetNfcEnabled"},
{510, nullptr, "OutputTestWave"},
{1000, &NfcInterface::ReadMifare, "ReadMifare"},
{1001, &NfcInterface::WriteMifare, "WriteMifare"},
{1300, &NfcInterface::SendCommandByPassThrough, "SendCommandByPassThrough"},
{1301, nullptr, "KeepPassThroughSession"},
{1302, nullptr, "ReleasePassThroughSession"}
FunctionInfo{0, &NfcInterface::Initialize, "InitializeOld"},
FunctionInfo{1, &NfcInterface::Finalize, "FinalizeOld"},
FunctionInfo{2, &NfcInterface::GetState, "GetStateOld"},
FunctionInfo{3, &NfcInterface::IsNfcEnabled, "IsNfcEnabledOld"},
FunctionInfo{100, &NfcInterface::SetNfcEnabled, "SetNfcEnabledOld"},
FunctionInfo{400, &NfcInterface::Initialize, "Initialize"},
FunctionInfo{401, &NfcInterface::Finalize, "Finalize"},
FunctionInfo{402, &NfcInterface::GetState, "GetState"},
FunctionInfo{403, &NfcInterface::IsNfcEnabled, "IsNfcEnabled"},
FunctionInfo{404, &NfcInterface::ListDevices, "ListDevices"},
FunctionInfo{405, &NfcInterface::GetDeviceState, "GetDeviceState"},
FunctionInfo{406, &NfcInterface::GetNpadId, "GetNpadId"},
FunctionInfo{407, &NfcInterface::AttachAvailabilityChangeEvent, "AttachAvailabilityChangeEvent"},
FunctionInfo{408, &NfcInterface::StartDetection, "StartDetection"},
FunctionInfo{409, &NfcInterface::StopDetection, "StopDetection"},
FunctionInfo{410, &NfcInterface::GetTagInfo, "GetTagInfo"},
FunctionInfo{411, &NfcInterface::AttachActivateEvent, "AttachActivateEvent"},
FunctionInfo{412, &NfcInterface::AttachDeactivateEvent, "AttachDeactivateEvent"},
FunctionInfo{500, &NfcInterface::SetNfcEnabled, "SetNfcEnabled"},
FunctionInfo{510, nullptr, "OutputTestWave"},
FunctionInfo{1000, &NfcInterface::ReadMifare, "ReadMifare"},
FunctionInfo{1001, &NfcInterface::WriteMifare, "WriteMifare"},
FunctionInfo{1300, &NfcInterface::SendCommandByPassThrough, "SendCommandByPassThrough"},
FunctionInfo{1301, nullptr, "KeepPassThroughSession"},
FunctionInfo{1302, nullptr, "ReleasePassThroughSession"}
};
// clang-format on
@@ -97,20 +97,20 @@ public:
: MFInterface{system_, "NFC::MFInterface", BackendType::Mifare} {
// clang-format off
static const FunctionInfoTyped<MFIUser> functions[] = {
{0, &MFIUser::Initialize, "Initialize"},
{1, &MFIUser::Finalize, "Finalize"},
{2, &MFIUser::ListDevices, "ListDevices"},
{3, &MFIUser::StartDetection, "StartDetection"},
{4, &MFIUser::StopDetection, "StopDetection"},
{5, &MFIUser::ReadMifare, "Read"},
{6, &MFIUser::WriteMifare, "Write"},
{7, &MFIUser::GetTagInfo, "GetTagInfo"},
{8, &MFIUser::AttachActivateEvent, "GetActivateEventHandle"},
{9, &MFIUser::AttachDeactivateEvent, "GetDeactivateEventHandle"},
{10, &MFIUser::GetState, "GetState"},
{11, &MFIUser::GetDeviceState, "GetDeviceState"},
{12, &MFIUser::GetNpadId, "GetNpadId"},
{13, &MFIUser::AttachAvailabilityChangeEvent, "GetAvailabilityChangeEventHandle"}
FunctionInfo{0, &MFIUser::Initialize, "Initialize"},
FunctionInfo{1, &MFIUser::Finalize, "Finalize"},
FunctionInfo{2, &MFIUser::ListDevices, "ListDevices"},
FunctionInfo{3, &MFIUser::StartDetection, "StartDetection"},
FunctionInfo{4, &MFIUser::StopDetection, "StopDetection"},
FunctionInfo{5, &MFIUser::ReadMifare, "Read"},
FunctionInfo{6, &MFIUser::WriteMifare, "Write"},
FunctionInfo{7, &MFIUser::GetTagInfo, "GetTagInfo"},
FunctionInfo{8, &MFIUser::AttachActivateEvent, "GetActivateEventHandle"},
FunctionInfo{9, &MFIUser::AttachDeactivateEvent, "GetDeactivateEventHandle"},
FunctionInfo{10, &MFIUser::GetState, "GetState"},
FunctionInfo{11, &MFIUser::GetDeviceState, "GetDeviceState"},
FunctionInfo{12, &MFIUser::GetNpadId, "GetNpadId"},
FunctionInfo{13, &MFIUser::AttachAvailabilityChangeEvent, "GetAvailabilityChangeEventHandle"}
};
// clang-format on
@@ -123,9 +123,9 @@ public:
explicit IAm(Core::System& system_) : ServiceFramework{system_, "NFC::IAm"} {
// clang-format off
static const FunctionInfo functions[] = {
{0, nullptr, "Initialize"},
{1, nullptr, "Finalize"},
{2, nullptr, "NotifyForegroundApplet"}
FunctionInfo{0, nullptr, "Initialize"},
FunctionInfo{1, nullptr, "Finalize"},
FunctionInfo{2, nullptr, "NotifyForegroundApplet"}
};
// clang-format on
@@ -138,7 +138,7 @@ public:
explicit NFC_AM(Core::System& system_) : ServiceFramework{system_, "nfc:am"} {
// clang-format off
static const FunctionInfo functions[] = {
{0, &NFC_AM::CreateAmNfcInterface, "CreateAmNfcInterface"}
FunctionInfo{0, &NFC_AM::CreateAmNfcInterface, "CreateAmNfcInterface"}
};
// clang-format on
@@ -160,7 +160,7 @@ public:
explicit NFC_MF_U(Core::System& system_) : ServiceFramework{system_, "nfc:mf:u"} {
// clang-format off
static const FunctionInfo functions[] = {
{0, &NFC_MF_U::CreateUserNfcInterface, "CreateUserNfcInterface"}
FunctionInfo{0, &NFC_MF_U::CreateUserNfcInterface, "CreateUserNfcInterface"}
};
// clang-format on
@@ -182,7 +182,7 @@ public:
explicit NFC_U(Core::System& system_) : ServiceFramework{system_, "nfc:user"} {
// clang-format off
static const FunctionInfo functions[] = {
{0, &NFC_U::CreateUserNfcInterface, "CreateUserNfcInterface"}
FunctionInfo{0, &NFC_U::CreateUserNfcInterface, "CreateUserNfcInterface"}
};
// clang-format on
@@ -204,7 +204,7 @@ public:
explicit NFC_SYS(Core::System& system_) : ServiceFramework{system_, "nfc:sys"} {
// clang-format off
static const FunctionInfo functions[] = {
{0, &NFC_SYS::CreateSystemNfcInterface, "CreateSystemNfcInterface"}
FunctionInfo{0, &NFC_SYS::CreateSystemNfcInterface, "CreateSystemNfcInterface"}
};
// clang-format on