2026-09-26 10:24:21

Signed-off-by: lizzie <lizzie@eden-emu.dev>
This commit is contained in:
lizzie
2026-09-26 10:24:21 +00:00
parent e733bb15db
commit c94890ef3c
224 changed files with 4671 additions and 5585 deletions
+37 -1
View File
@@ -17,9 +17,45 @@
namespace Service::Glue {
namespace {
constexpr inline std::size_t MaxAlarms = 8;
}
ServiceFrameworkBase::FunctionInfoBase const* INotificationServicesForApplication::FindRequest(u32 key) {
static constexpr auto functions = CreateStaticMap(
FunctionInfo{500, D<&INotificationServicesForApplication::RegisterAlarmSetting>, "RegisterAlarmSetting"},
FunctionInfo{510, D<&INotificationServicesForApplication::UpdateAlarmSetting>, "UpdateAlarmSetting"},
FunctionInfo{520, D<&INotificationServicesForApplication::ListAlarmSettings>, "ListAlarmSettings"},
FunctionInfo{530, D<&INotificationServicesForApplication::LoadApplicationParameter>, "LoadApplicationParameter"},
FunctionInfo{540, D<&INotificationServicesForApplication::DeleteAlarmSetting>, "DeleteAlarmSetting"},
FunctionInfo{1000, D<&INotificationServicesForApplication::Initialize>, "Initialize"}
);
return HandlerTableGenerateWithFind(key, functions);
}
ServiceFrameworkBase::FunctionInfoBase const* INotificationServices::FindRequest(u32 key) {
static constexpr auto functions = CreateStaticMap(
FunctionInfo{500, D<&INotificationServices::RegisterAlarmSetting>, "RegisterAlarmSetting"},
FunctionInfo{510, D<&INotificationServices::UpdateAlarmSetting>, "UpdateAlarmSetting"},
FunctionInfo{520, D<&INotificationServices::ListAlarmSettings>, "ListAlarmSettings"},
FunctionInfo{530, D<&INotificationServices::LoadApplicationParameter>, "LoadApplicationParameter"},
FunctionInfo{540, D<&INotificationServices::DeleteAlarmSetting>, "DeleteAlarmSetting"},
FunctionInfo{1000, D<&INotificationServices::Initialize>, "Initialize"},
FunctionInfo{1010, nullptr, "ListNotifications"},
FunctionInfo{1020, nullptr, "DeleteNotification"},
FunctionInfo{1030, nullptr, "ClearNotifications"},
FunctionInfo{1040, D<&INotificationServices::OpenNotificationSystemEventAccessor>, "OpenNotificationSystemEventAccessor"},
FunctionInfo{1500, nullptr, "SetNotificationPresentationSetting"},
FunctionInfo{1510, D<&INotificationServices::GetNotificationPresentationSetting>, "GetNotificationPresentationSetting"},
FunctionInfo{2000, nullptr, "GetAlarmSetting"},
FunctionInfo{2001, nullptr, "GetAlarmSettingWithApplicationParameter"},
FunctionInfo{2010, nullptr, "MuteAlarmSetting"},
FunctionInfo{2020, nullptr, "IsAlarmSettingReady"},
FunctionInfo{8000, nullptr, "RegisterAppletResourceUserId"},
FunctionInfo{8010, nullptr, "UnregisterAppletResourceUserId"},
FunctionInfo{8999, nullptr, "GetCurrentTime"},
FunctionInfo{9000, nullptr, "GetAlarmSettingNextNotificationTime"}
);
return HandlerTableGenerateWithFind(key, functions);
}
Result NotificationServiceImpl::RegisterAlarmSetting(AlarmSettingId* out_alarm_setting_id,