aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/service/ns/dynamic_rights_interface.h
blob: c3270aee0533f2835de1fdb3976c1973097e08bc (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
// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
// SPDX-License-Identifier: GPL-3.0-or-later

// SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later

#pragma once

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

namespace Service::NS {

class IDynamicRightsInterface final : public ServiceFramework<IDynamicRightsInterface> {
public:
    explicit IDynamicRightsInterface(Core::System& system_);
    ~IDynamicRightsInterface() override;

private:
    Result NotifyApplicationRightsCheckStart();
    Result GetRunningApplicationStatus(Out<u32> out_status, u64 rights_handle);
    Result VerifyActivatedRightsOwners(u64 rights_handle);
    Result HasAccountRestrictedRightsInRunningApplications(Out<bool> out_is_restricted);
};

} // namespace Service::NS