2025-10-29 13:12:07 +01:00
|
|
|
// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project
|
|
|
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
|
2024-02-14 23:44:05 -05:00
|
|
|
// SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project
|
|
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "common/polyfill_thread.h"
|
|
|
|
|
#include "core/hle/service/sm/sm.h"
|
|
|
|
|
|
|
|
|
|
namespace Service {
|
|
|
|
|
|
2025-10-29 13:12:07 +01:00
|
|
|
/// @brief The purpose of this class is to own any objects that need to be shared across the other service
|
|
|
|
|
/// implementations. Will be torn down when the global system instance is shutdown.
|
2024-02-14 23:44:05 -05:00
|
|
|
class Services final {
|
|
|
|
|
public:
|
|
|
|
|
explicit Services(std::shared_ptr<SM::ServiceManager>& sm, Core::System& system,
|
|
|
|
|
std::stop_token token);
|
2025-10-29 13:12:07 +01:00
|
|
|
~Services() = default;
|
2024-02-14 23:44:05 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace Service
|