// SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later #include "core/hle/service/cmif_serialization.h" #include "core/hle/service/ns/account_proxy_interface.h" #include "core/hle/service/ns/application_manager_interface.h" #include "core/hle/service/ns/application_version_interface.h" #include "core/hle/service/ns/content_management_interface.h" #include "core/hle/service/ns/document_interface.h" #include "core/hle/service/ns/download_task_interface.h" #include "core/hle/service/ns/dynamic_rights_interface.h" #include "core/hle/service/ns/ecommerce_interface.h" #include "core/hle/service/ns/factory_reset_interface.h" #include "core/hle/service/ns/read_only_application_control_data_interface.h" #include "core/hle/service/ns/read_only_application_record_interface.h" #include "core/hle/service/ns/service_getter_interface.h" namespace Service::NS { IServiceGetterInterface::IServiceGetterInterface(Core::System& system_, const char* name) : ServiceFramework{system_, name} { // clang-format off static const FunctionInfo functions[] = { {7988, D<&IServiceGetterInterface::GetDynamicRightsInterface>, "GetDynamicRightsInterface"}, {7989, D<&IServiceGetterInterface::GetReadOnlyApplicationControlDataInterface>, "GetReadOnlyApplicationControlDataInterface"}, {7991, D<&IServiceGetterInterface::GetReadOnlyApplicationRecordInterface>, "GetReadOnlyApplicationRecordInterface"}, {7992, D<&IServiceGetterInterface::GetECommerceInterface>, "GetECommerceInterface"}, {7993, D<&IServiceGetterInterface::GetApplicationVersionInterface>, "GetApplicationVersionInterface"}, {7994, D<&IServiceGetterInterface::GetFactoryResetInterface>, "GetFactoryResetInterface"}, {7995, D<&IServiceGetterInterface::GetAccountProxyInterface>, "GetAccountProxyInterface"}, {7996, D<&IServiceGetterInterface::GetApplicationManagerInterface>, "GetApplicationManagerInterface"}, {7997, D<&IServiceGetterInterface::GetDownloadTaskInterface>, "GetDownloadTaskInterface"}, {7998, D<&IServiceGetterInterface::GetContentManagementInterface>, "GetContentManagementInterface"}, {7999, D<&IServiceGetterInterface::GetDocumentInterface>, "GetDocumentInterface"}, }; // clang-format on RegisterHandlers(functions); } IServiceGetterInterface::~IServiceGetterInterface() = default; Result IServiceGetterInterface::GetDynamicRightsInterface( Out> out_interface) { LOG_DEBUG(Service_NS, "called"); *out_interface = std::make_shared(system); R_SUCCEED(); } Result IServiceGetterInterface::GetReadOnlyApplicationControlDataInterface( Out> out_interface) { LOG_DEBUG(Service_NS, "called"); *out_interface = std::make_shared(system); R_SUCCEED(); } Result IServiceGetterInterface::GetReadOnlyApplicationRecordInterface( Out> out_interface) { LOG_DEBUG(Service_NS, "called"); *out_interface = std::make_shared(system); R_SUCCEED(); } Result IServiceGetterInterface::GetECommerceInterface( Out> out_interface) { LOG_DEBUG(Service_NS, "called"); *out_interface = std::make_shared(system); R_SUCCEED(); } Result IServiceGetterInterface::GetApplicationVersionInterface( Out> out_interface) { LOG_DEBUG(Service_NS, "called"); *out_interface = std::make_shared(system); R_SUCCEED(); } Result IServiceGetterInterface::GetFactoryResetInterface( Out> out_interface) { LOG_DEBUG(Service_NS, "called"); *out_interface = std::make_shared(system); R_SUCCEED(); } Result IServiceGetterInterface::GetAccountProxyInterface( Out> out_interface) { LOG_DEBUG(Service_NS, "called"); *out_interface = std::make_shared(system); R_SUCCEED(); } Result IServiceGetterInterface::GetApplicationManagerInterface( Out> out_interface) { LOG_DEBUG(Service_NS, "called"); *out_interface = std::make_shared(system); R_SUCCEED(); } Result IServiceGetterInterface::GetDownloadTaskInterface( Out> out_interface) { LOG_DEBUG(Service_NS, "called"); *out_interface = std::make_shared(system); R_SUCCEED(); } Result IServiceGetterInterface::GetContentManagementInterface( Out> out_interface) { LOG_DEBUG(Service_NS, "called"); *out_interface = std::make_shared(system); R_SUCCEED(); } Result IServiceGetterInterface::GetDocumentInterface( Out> out_interface) { LOG_DEBUG(Service_NS, "called"); *out_interface = std::make_shared(system); R_SUCCEED(); } } // namespace Service::NS