2022-04-23 04:59:50 -04:00
|
|
|
// SPDX-FileCopyrightText: Copyright 2019 yuzu Emulator Project
|
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2019-06-24 19:26:16 -04:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "core/hle/service/service.h"
|
|
|
|
|
|
|
|
namespace Service::Glue {
|
|
|
|
|
|
|
|
class ARPManager;
|
|
|
|
class IRegistrar;
|
|
|
|
|
|
|
|
class ARP_R final : public ServiceFramework<ARP_R> {
|
|
|
|
public:
|
2020-11-26 15:19:08 -05:00
|
|
|
explicit ARP_R(Core::System& system_, const ARPManager& manager_);
|
2019-06-24 19:26:16 -04:00
|
|
|
~ARP_R() override;
|
|
|
|
|
|
|
|
private:
|
2023-02-19 14:42:12 -05:00
|
|
|
void GetApplicationLaunchProperty(HLERequestContext& ctx);
|
|
|
|
void GetApplicationLaunchPropertyWithApplicationId(HLERequestContext& ctx);
|
|
|
|
void GetApplicationControlProperty(HLERequestContext& ctx);
|
|
|
|
void GetApplicationControlPropertyWithApplicationId(HLERequestContext& ctx);
|
2019-06-24 19:26:16 -04:00
|
|
|
|
|
|
|
const ARPManager& manager;
|
|
|
|
};
|
|
|
|
|
|
|
|
class ARP_W final : public ServiceFramework<ARP_W> {
|
|
|
|
public:
|
2020-11-26 15:19:08 -05:00
|
|
|
explicit ARP_W(Core::System& system_, ARPManager& manager_);
|
2019-06-24 19:26:16 -04:00
|
|
|
~ARP_W() override;
|
|
|
|
|
|
|
|
private:
|
2023-02-19 14:42:12 -05:00
|
|
|
void AcquireRegistrar(HLERequestContext& ctx);
|
|
|
|
void UnregisterApplicationInstance(HLERequestContext& ctx);
|
2019-06-24 19:26:16 -04:00
|
|
|
|
|
|
|
ARPManager& manager;
|
|
|
|
std::shared_ptr<IRegistrar> registrar;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace Service::Glue
|