diff options
author | Narr the Reg <juangerman-13@hotmail.com> | 2024-02-09 05:48:53 +0100 |
---|---|---|
committer | Narr the Reg <juangerman-13@hotmail.com> | 2024-02-10 07:23:22 +0100 |
commit | 909f7eb3d2d54050af667e7638171c0cc50c8f90 (patch) | |
tree | 10483ede13ae58af40d874210d8dd46547f52d3c /src/core/hle/service/bcat/news/news_database_service.cpp | |
parent | service: bcat: Migrate and refractor service to new IPC (diff) | |
download | yuzu-909f7eb3d2d54050af667e7638171c0cc50c8f90.tar yuzu-909f7eb3d2d54050af667e7638171c0cc50c8f90.tar.gz yuzu-909f7eb3d2d54050af667e7638171c0cc50c8f90.tar.bz2 yuzu-909f7eb3d2d54050af667e7638171c0cc50c8f90.tar.lz yuzu-909f7eb3d2d54050af667e7638171c0cc50c8f90.tar.xz yuzu-909f7eb3d2d54050af667e7638171c0cc50c8f90.tar.zst yuzu-909f7eb3d2d54050af667e7638171c0cc50c8f90.zip |
Diffstat (limited to 'src/core/hle/service/bcat/news/news_database_service.cpp')
-rw-r--r-- | src/core/hle/service/bcat/news/news_database_service.cpp | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/core/hle/service/bcat/news/news_database_service.cpp b/src/core/hle/service/bcat/news/news_database_service.cpp new file mode 100644 index 000000000..3b4b33901 --- /dev/null +++ b/src/core/hle/service/bcat/news/news_database_service.cpp @@ -0,0 +1,35 @@ +// SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project +// SPDX-License-Identifier: GPL-3.0-or-later + +#include "core/hle/service/bcat/news/news_database_service.h" +#include "core/hle/service/cmif_serialization.h" + +namespace Service::BCAT { + +INewsDatabaseService::INewsDatabaseService(Core::System& system_) + : ServiceFramework{system_, "INewsDatabaseService"} { + // clang-format off + static const FunctionInfo functions[] = { + {0, nullptr, "GetListV1"}, + {1, C<&INewsDatabaseService::Count>, "Count"}, + {2, nullptr, "CountWithKey"}, + {3, nullptr, "UpdateIntegerValue"}, + {4, nullptr, "UpdateIntegerValueWithAddition"}, + {5, nullptr, "UpdateStringValue"}, + {1000, nullptr, "GetList"}, + }; + // clang-format on + + RegisterHandlers(functions); +} + +INewsDatabaseService::~INewsDatabaseService() = default; + +Result INewsDatabaseService::Count(Out<u32> out_count, + InBuffer<BufferAttr_HipcPointer> buffer_data) { + LOG_WARNING(Service_BCAT, "(STUBBED) called, buffer_size={}", buffer_data.size()); + *out_count = 0; + R_SUCCEED(); +} + +} // namespace Service::BCAT |