summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/olsc/olsc.cpp
blob: 26d93cf208dab28707bec150cbb9306830ac436e (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
// SPDX-FileCopyrightText: Copyright 2020 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later

#include "core/hle/service/olsc/olsc.h"
#include "core/hle/service/olsc/olsc_service_for_application.h"
#include "core/hle/service/olsc/olsc_service_for_system_service.h"
#include "core/hle/service/server_manager.h"
#include "core/hle/service/service.h"

namespace Service::OLSC {

void LoopProcess(Core::System& system) {
    auto server_manager = std::make_unique<ServerManager>(system);

    server_manager->RegisterNamedService("olsc:u",
                                         std::make_shared<IOlscServiceForApplication>(system));
    server_manager->RegisterNamedService("olsc:s",
                                         std::make_shared<IOlscServiceForSystemService>(system));

    ServerManager::RunServer(std::move(server_manager));
}

} // namespace Service::OLSC