summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/ns/ns.h
blob: ef5c575da000db89dee17f944edf186e2d7fd1f8 (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
// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later

#pragma once

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

namespace Core {
class System;
}

namespace Service::NS {

class IApplicationManagerInterface;

class NS final : public ServiceFramework<NS> {
public:
    explicit NS(const char* name, Core::System& system_);
    ~NS() override;

    std::shared_ptr<IApplicationManagerInterface> GetApplicationManagerInterface() const;

private:
    template <typename T, typename... Args>
    void PushInterface(HLERequestContext& ctx);

    void PushIApplicationManagerInterface(HLERequestContext& ctx);

    template <typename T, typename... Args>
    std::shared_ptr<T> GetInterface(Args&&... args) const;
};

void LoopProcess(Core::System& system);

} // namespace Service::NS