diff options
author | german77 <juangerman-13@hotmail.com> | 2021-12-06 05:55:23 +0100 |
---|---|---|
committer | Narr the Reg <juangerman-13@hotmail.com> | 2021-12-06 17:36:37 +0100 |
commit | ac1bfe228f688bb8eef38bdaf26011008891afdf (patch) | |
tree | 210c2aa10c1adda5432154238dc23aa18033f7da /src/core/hle/service/glue/notif.cpp | |
parent | Merge pull request #7518 from german77/is_npad_valid (diff) | |
download | yuzu-ac1bfe228f688bb8eef38bdaf26011008891afdf.tar yuzu-ac1bfe228f688bb8eef38bdaf26011008891afdf.tar.gz yuzu-ac1bfe228f688bb8eef38bdaf26011008891afdf.tar.bz2 yuzu-ac1bfe228f688bb8eef38bdaf26011008891afdf.tar.lz yuzu-ac1bfe228f688bb8eef38bdaf26011008891afdf.tar.xz yuzu-ac1bfe228f688bb8eef38bdaf26011008891afdf.tar.zst yuzu-ac1bfe228f688bb8eef38bdaf26011008891afdf.zip |
Diffstat (limited to 'src/core/hle/service/glue/notif.cpp')
-rw-r--r-- | src/core/hle/service/glue/notif.cpp | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/src/core/hle/service/glue/notif.cpp b/src/core/hle/service/glue/notif.cpp new file mode 100644 index 000000000..c559ec9df --- /dev/null +++ b/src/core/hle/service/glue/notif.cpp @@ -0,0 +1,44 @@ +// Copyright 2021 yuzu Emulator Project +// Licensed under GPLv2 or any later version +// Refer to the license.txt file included. + +#include "core/hle/ipc_helpers.h" +#include "core/hle/service/glue/notif.h" + +namespace Service::Glue { + +NOTIF_A::NOTIF_A(Core::System& system_) : ServiceFramework{system_, "notif:a"} { + // clang-format off + static const FunctionInfo functions[] = { + {500, nullptr, "RegisterAlarmSetting"}, + {510, nullptr, "UpdateAlarmSetting"}, + {520, &NOTIF_A::ListAlarmSettings, "ListAlarmSettings"}, + {530, nullptr, "LoadApplicationParameter"}, + {540, nullptr, "DeleteAlarmSetting"}, + {1000, &NOTIF_A::Initialize, "Initialize"}, + }; + // clang-format on + + RegisterHandlers(functions); +} + +NOTIF_A::~NOTIF_A() = default; + +void NOTIF_A::ListAlarmSettings(Kernel::HLERequestContext& ctx) { + // Returns an array of AlarmSetting + constexpr s32 alarm_count = 0; + + LOG_WARNING(Service_NOTIF, "(STUBBED) called"); + + IPC::ResponseBuilder rb{ctx, 3}; + rb.Push(ResultSuccess); + rb.Push(alarm_count); +} + +void NOTIF_A::Initialize(Kernel::HLERequestContext& ctx) { + LOG_WARNING(Service_NOTIF, "(STUBBED) called"); + IPC::ResponseBuilder rb{ctx, 2}; + rb.Push(ResultSuccess); +} + +} // namespace Service::Glue |