ns: move IECommerceInterface
This commit is contained in:
parent
12926eb5db
commit
44d2e90217
5 changed files with 46 additions and 25 deletions
|
@ -743,6 +743,8 @@ add_library(core STATIC
|
||||||
hle/service/ns/account_proxy_interface.h
|
hle/service/ns/account_proxy_interface.h
|
||||||
hle/service/ns/application_version_interface.cpp
|
hle/service/ns/application_version_interface.cpp
|
||||||
hle/service/ns/application_version_interface.h
|
hle/service/ns/application_version_interface.h
|
||||||
|
hle/service/ns/ecommerce_interface.cpp
|
||||||
|
hle/service/ns/ecommerce_interface.h
|
||||||
hle/service/ns/language.cpp
|
hle/service/ns/language.cpp
|
||||||
hle/service/ns/language.h
|
hle/service/ns/language.h
|
||||||
hle/service/ns/ns_results.h
|
hle/service/ns/ns_results.h
|
||||||
|
|
27
src/core/hle/service/ns/ecommerce_interface.cpp
Normal file
27
src/core/hle/service/ns/ecommerce_interface.cpp
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
// SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project
|
||||||
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
|
|
||||||
|
#include "core/hle/service/ns/ecommerce_interface.h"
|
||||||
|
|
||||||
|
namespace Service::NS {
|
||||||
|
|
||||||
|
IECommerceInterface::IECommerceInterface(Core::System& system_)
|
||||||
|
: ServiceFramework{system_, "IECommerceInterface"} {
|
||||||
|
// clang-format off
|
||||||
|
static const FunctionInfo functions[] = {
|
||||||
|
{0, nullptr, "RequestLinkDevice"},
|
||||||
|
{1, nullptr, "RequestCleanupAllPreInstalledApplications"},
|
||||||
|
{2, nullptr, "RequestCleanupPreInstalledApplication"},
|
||||||
|
{3, nullptr, "RequestSyncRights"},
|
||||||
|
{4, nullptr, "RequestUnlinkDevice"},
|
||||||
|
{5, nullptr, "RequestRevokeAllELicense"},
|
||||||
|
{6, nullptr, "RequestSyncRightsBasedOnAssignedELicenses"},
|
||||||
|
};
|
||||||
|
// clang-format on
|
||||||
|
|
||||||
|
RegisterHandlers(functions);
|
||||||
|
}
|
||||||
|
|
||||||
|
IECommerceInterface::~IECommerceInterface() = default;
|
||||||
|
|
||||||
|
} // namespace Service::NS
|
16
src/core/hle/service/ns/ecommerce_interface.h
Normal file
16
src/core/hle/service/ns/ecommerce_interface.h
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
// SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project
|
||||||
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "core/hle/service/service.h"
|
||||||
|
|
||||||
|
namespace Service::NS {
|
||||||
|
|
||||||
|
class IECommerceInterface final : public ServiceFramework<IECommerceInterface> {
|
||||||
|
public:
|
||||||
|
explicit IECommerceInterface(Core::System& system_);
|
||||||
|
~IECommerceInterface() override;
|
||||||
|
};
|
||||||
|
|
||||||
|
} // namespace Service::NS
|
|
@ -13,6 +13,7 @@
|
||||||
#include "core/hle/service/ipc_helpers.h"
|
#include "core/hle/service/ipc_helpers.h"
|
||||||
#include "core/hle/service/ns/account_proxy_interface.h"
|
#include "core/hle/service/ns/account_proxy_interface.h"
|
||||||
#include "core/hle/service/ns/application_version_interface.h"
|
#include "core/hle/service/ns/application_version_interface.h"
|
||||||
|
#include "core/hle/service/ns/ecommerce_interface.h"
|
||||||
#include "core/hle/service/ns/language.h"
|
#include "core/hle/service/ns/language.h"
|
||||||
#include "core/hle/service/ns/ns.h"
|
#include "core/hle/service/ns/ns.h"
|
||||||
#include "core/hle/service/ns/ns_results.h"
|
#include "core/hle/service/ns/ns_results.h"
|
||||||
|
@ -566,25 +567,6 @@ IDownloadTaskInterface::IDownloadTaskInterface(Core::System& system_)
|
||||||
|
|
||||||
IDownloadTaskInterface::~IDownloadTaskInterface() = default;
|
IDownloadTaskInterface::~IDownloadTaskInterface() = default;
|
||||||
|
|
||||||
IECommerceInterface::IECommerceInterface(Core::System& system_)
|
|
||||||
: ServiceFramework{system_, "IECommerceInterface"} {
|
|
||||||
// clang-format off
|
|
||||||
static const FunctionInfo functions[] = {
|
|
||||||
{0, nullptr, "RequestLinkDevice"},
|
|
||||||
{1, nullptr, "RequestCleanupAllPreInstalledApplications"},
|
|
||||||
{2, nullptr, "RequestCleanupPreInstalledApplication"},
|
|
||||||
{3, nullptr, "RequestSyncRights"},
|
|
||||||
{4, nullptr, "RequestUnlinkDevice"},
|
|
||||||
{5, nullptr, "RequestRevokeAllELicense"},
|
|
||||||
{6, nullptr, "RequestSyncRightsBasedOnAssignedELicenses"},
|
|
||||||
};
|
|
||||||
// clang-format on
|
|
||||||
|
|
||||||
RegisterHandlers(functions);
|
|
||||||
}
|
|
||||||
|
|
||||||
IECommerceInterface::~IECommerceInterface() = default;
|
|
||||||
|
|
||||||
IFactoryResetInterface::IFactoryResetInterface(Core::System& system_)
|
IFactoryResetInterface::IFactoryResetInterface(Core::System& system_)
|
||||||
: ServiceFramework{system_, "IFactoryResetInterface"} {
|
: ServiceFramework{system_, "IFactoryResetInterface"} {
|
||||||
// clang-format off
|
// clang-format off
|
||||||
|
|
|
@ -58,12 +58,6 @@ public:
|
||||||
~IDownloadTaskInterface() override;
|
~IDownloadTaskInterface() override;
|
||||||
};
|
};
|
||||||
|
|
||||||
class IECommerceInterface final : public ServiceFramework<IECommerceInterface> {
|
|
||||||
public:
|
|
||||||
explicit IECommerceInterface(Core::System& system_);
|
|
||||||
~IECommerceInterface() override;
|
|
||||||
};
|
|
||||||
|
|
||||||
class IFactoryResetInterface final : public ServiceFramework<IFactoryResetInterface> {
|
class IFactoryResetInterface final : public ServiceFramework<IFactoryResetInterface> {
|
||||||
public:
|
public:
|
||||||
explicit IFactoryResetInterface(Core::System& system_);
|
explicit IFactoryResetInterface(Core::System& system_);
|
||||||
|
|
Loading…
Reference in a new issue