summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/glue/arp.h
blob: 06c992e880b0d8078fb883cd9c8453b68e5220dd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// SPDX-FileCopyrightText: Copyright 2019 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later

#pragma once

#include "core/hle/service/service.h"

namespace Service::Glue {

class ARPManager;
class IRegistrar;

class ARP_R final : public ServiceFramework<ARP_R> {
public:
    explicit ARP_R(Core::System& system_, const ARPManager& manager_);
    ~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:
    explicit ARP_W(Core::System& system_, ARPManager& manager_);
    ~ARP_W() override;

private:
    void AcquireRegistrar(Kernel::HLERequestContext& ctx);
    void UnregisterApplicationInstance(Kernel::HLERequestContext& ctx);

    ARPManager& manager;
    std::shared_ptr<IRegistrar> registrar;
};

} // namespace Service::Glue