diff options
author | Liam <byteslice@airmail.cc> | 2024-02-17 20:05:41 +0100 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2024-02-18 16:32:21 +0100 |
commit | ae83ee28a3a1d31d74b991123a150d3cd202f554 (patch) | |
tree | 06137c63e8b2aeac11b6765298e91ee90146aaf6 /src/core/hle/service/ns/system_update_interface.h | |
parent | ns: move ISystemUpdateControl (diff) | |
download | yuzu-ae83ee28a3a1d31d74b991123a150d3cd202f554.tar yuzu-ae83ee28a3a1d31d74b991123a150d3cd202f554.tar.gz yuzu-ae83ee28a3a1d31d74b991123a150d3cd202f554.tar.bz2 yuzu-ae83ee28a3a1d31d74b991123a150d3cd202f554.tar.lz yuzu-ae83ee28a3a1d31d74b991123a150d3cd202f554.tar.xz yuzu-ae83ee28a3a1d31d74b991123a150d3cd202f554.tar.zst yuzu-ae83ee28a3a1d31d74b991123a150d3cd202f554.zip |
Diffstat (limited to 'src/core/hle/service/ns/system_update_interface.h')
-rw-r--r-- | src/core/hle/service/ns/system_update_interface.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/src/core/hle/service/ns/system_update_interface.h b/src/core/hle/service/ns/system_update_interface.h new file mode 100644 index 000000000..36a2880ec --- /dev/null +++ b/src/core/hle/service/ns/system_update_interface.h @@ -0,0 +1,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 |