diff --git a/app/CMakeLists.txt b/app/CMakeLists.txt index 86f4424a..6de7d2bd 100644 --- a/app/CMakeLists.txt +++ b/app/CMakeLists.txt @@ -332,6 +332,7 @@ add_library(skyline SHARED ${source_DIR}/skyline/services/glue/IStaticService.cpp ${source_DIR}/skyline/services/glue/ITimeZoneService.cpp ${source_DIR}/skyline/services/glue/IWriterForSystem.cpp + ${source_DIR}/skyline/services/glue/INotificationServicesForApplication.cpp ${source_DIR}/skyline/services/fssrv/IFileSystemProxy.cpp ${source_DIR}/skyline/services/fssrv/IFileSystem.cpp ${source_DIR}/skyline/services/fssrv/IFile.cpp diff --git a/app/src/main/cpp/skyline/services/glue/INotificationServicesForApplication.cpp b/app/src/main/cpp/skyline/services/glue/INotificationServicesForApplication.cpp new file mode 100644 index 00000000..b94af55b --- /dev/null +++ b/app/src/main/cpp/skyline/services/glue/INotificationServicesForApplication.cpp @@ -0,0 +1,8 @@ +// SPDX-License-Identifier: MPL-2.0 +// Copyright © 2023 Skyline Team and Contributors (https://github.com/skyline-emu/) + +#include "INotificationServicesForApplication.h" + +namespace skyline::service::glue { + INotificationServicesForApplication::INotificationServicesForApplication(const DeviceState &state, ServiceManager &manager) : BaseService(state, manager) {} +} diff --git a/app/src/main/cpp/skyline/services/glue/INotificationServicesForApplication.h b/app/src/main/cpp/skyline/services/glue/INotificationServicesForApplication.h new file mode 100644 index 00000000..a8b2dfeb --- /dev/null +++ b/app/src/main/cpp/skyline/services/glue/INotificationServicesForApplication.h @@ -0,0 +1,17 @@ +// SPDX-License-Identifier: MPL-2.0 +// Copyright © 2023 Skyline Team and Contributors (https://github.com/skyline-emu/) + +#pragma once + +#include + +namespace skyline::service::glue { + /** + * @brief Stub implementation for INotificationServicesForApplication + * @url https://switchbrew.org/wiki/Glue_services#notif:a + */ + class INotificationServicesForApplication : public BaseService { + public: + INotificationServicesForApplication(const DeviceState &state, ServiceManager &manager); + }; +} diff --git a/app/src/main/cpp/skyline/services/serviceman.cpp b/app/src/main/cpp/skyline/services/serviceman.cpp index 843903db..f5c16e63 100644 --- a/app/src/main/cpp/skyline/services/serviceman.cpp +++ b/app/src/main/cpp/skyline/services/serviceman.cpp @@ -21,6 +21,7 @@ #include "timesrv/IStaticService.h" #include "glue/IStaticService.h" #include "glue/IWriterForSystem.h" +#include "glue/INotificationServicesForApplication.h" #include "services/timesrv/core.h" #include "fssrv/IFileSystemProxy.h" #include "nvdrv/INvDrvServices.h" @@ -99,6 +100,7 @@ namespace skyline::service { SERVICE_CASE(glue::IStaticService, "time:a", globalServiceState->timesrv.managerServer.GetStaticServiceAsAdmin(state, *this), globalServiceState->timesrv, timesrv::constant::StaticServiceAdminPermissions) SERVICE_CASE(glue::IStaticService, "time:r", globalServiceState->timesrv.managerServer.GetStaticServiceAsRepair(state, *this), globalServiceState->timesrv, timesrv::constant::StaticServiceRepairPermissions) SERVICE_CASE(glue::IStaticService, "time:u", globalServiceState->timesrv.managerServer.GetStaticServiceAsUser(state, *this), globalServiceState->timesrv, timesrv::constant::StaticServiceUserPermissions) + SERVICE_CASE(glue::INotificationServicesForApplication, "notif:a") SERVICE_CASE(glue::IWriterForSystem, "ectx:w") SERVICE_CASE(glue::IWriterForSystem, "ectx:aw") SERVICE_CASE(fssrv::IFileSystemProxy, "fsp-srv")