summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/ns/system_update_interface.h
blob: 36a2880ec91f2723f2309a9459720e8237b15c1d (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
// 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/kernel_helpers.h"
#include "core/hle/service/ns/ns_types.h"
#include "core/hle/service/os/event.h"
#include "core/hle/service/service.h"

namespace Kernel {
class KReadableEvent;
}

namespace Service::NS {

class ISystemUpdateControl;

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

private:
    Result GetBackgroundNetworkUpdateState(
        Out<BackgroundNetworkUpdateState> out_background_network_update_state);
    Result OpenSystemUpdateControl(
        Out<SharedPointer<ISystemUpdateControl>> out_system_update_control);
    Result GetSystemUpdateNotificationEventForContentDelivery(
        OutCopyHandle<Kernel::KReadableEvent> out_event);

private:
    KernelHelpers::ServiceContext service_context;
    Event update_notification_event;
};

} // namespace Service::NS