2019-06-24 16:26:16 -07:00
|
|
|
// Copyright 2019 yuzu emulator team
|
|
|
|
// Licensed under GPLv2 or any later version
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#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 12:19:08 -08:00
|
|
|
explicit ARP_R(Core::System& system_, const ARPManager& manager_);
|
2019-06-24 16:26:16 -07:00
|
|
|
~ARP_R() override;
|
|
|
|
|
|
|
|
private:
|
|
|
|
void GetApplicationLaunchProperty(Kernel::HLERequestContext& ctx);
|
|
|
|
void GetApplicationLaunchPropertyWithApplicationId(Kernel::HLERequestContext& ctx);
|
|
|
|
void GetApplicationControlProperty(Kernel::HLERequestContext& ctx);
|
|
|
|
void GetApplicationControlPropertyWithApplicationId(Kernel::HLERequestContext& ctx);
|
|
|
|
|
|
|
|
const ARPManager& manager;
|
|
|
|
};
|
|
|
|
|
|
|
|
class ARP_W final : public ServiceFramework<ARP_W> {
|
|
|
|
public:
|
2020-11-26 12:19:08 -08:00
|
|
|
explicit ARP_W(Core::System& system_, ARPManager& manager_);
|
2019-06-24 16:26:16 -07:00
|
|
|
~ARP_W() override;
|
|
|
|
|
|
|
|
private:
|
|
|
|
void AcquireRegistrar(Kernel::HLERequestContext& ctx);
|
2021-04-08 11:58:23 -07:00
|
|
|
void UnregisterApplicationInstance(Kernel::HLERequestContext& ctx);
|
2019-06-24 16:26:16 -07:00
|
|
|
|
|
|
|
ARPManager& manager;
|
|
|
|
std::shared_ptr<IRegistrar> registrar;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace Service::Glue
|