mirror of https://github.com/yuzu-mirror/yuzu
am: move out omm interfaces to new module
parent
a65fb85b6d
commit
bca698a17a
@ -1,20 +0,0 @@
|
|||||||
// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
|
|
||||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
||||||
|
|
||||||
#pragma once
|
|
||||||
|
|
||||||
#include "core/hle/service/service.h"
|
|
||||||
|
|
||||||
namespace Core {
|
|
||||||
class System;
|
|
||||||
}
|
|
||||||
|
|
||||||
namespace Service::AM {
|
|
||||||
|
|
||||||
class IdleSys final : public ServiceFramework<IdleSys> {
|
|
||||||
public:
|
|
||||||
explicit IdleSys(Core::System& system_);
|
|
||||||
~IdleSys() override;
|
|
||||||
};
|
|
||||||
|
|
||||||
} // namespace Service::AM
|
|
@ -1,20 +0,0 @@
|
|||||||
// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
|
|
||||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
||||||
|
|
||||||
#pragma once
|
|
||||||
|
|
||||||
#include "core/hle/service/service.h"
|
|
||||||
|
|
||||||
namespace Core {
|
|
||||||
class System;
|
|
||||||
}
|
|
||||||
|
|
||||||
namespace Service::AM {
|
|
||||||
|
|
||||||
class OMM final : public ServiceFramework<OMM> {
|
|
||||||
public:
|
|
||||||
explicit OMM(Core::System& system_);
|
|
||||||
~OMM() override;
|
|
||||||
};
|
|
||||||
|
|
||||||
} // namespace Service::AM
|
|
@ -1,20 +0,0 @@
|
|||||||
// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
|
|
||||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
||||||
|
|
||||||
#pragma once
|
|
||||||
|
|
||||||
#include "core/hle/service/service.h"
|
|
||||||
|
|
||||||
namespace Core {
|
|
||||||
class System;
|
|
||||||
}
|
|
||||||
|
|
||||||
namespace Service::AM {
|
|
||||||
|
|
||||||
class SPSM final : public ServiceFramework<SPSM> {
|
|
||||||
public:
|
|
||||||
explicit SPSM(Core::System& system_);
|
|
||||||
~SPSM() override;
|
|
||||||
};
|
|
||||||
|
|
||||||
} // namespace Service::AM
|
|
@ -0,0 +1,22 @@
|
|||||||
|
// SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project
|
||||||
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
|
|
||||||
|
#include "core/hle/service/omm/omm.h"
|
||||||
|
#include "core/hle/service/omm/operation_mode_manager.h"
|
||||||
|
#include "core/hle/service/omm/policy_manager_system.h"
|
||||||
|
#include "core/hle/service/omm/power_state_interface.h"
|
||||||
|
#include "core/hle/service/server_manager.h"
|
||||||
|
|
||||||
|
namespace Service::OMM {
|
||||||
|
|
||||||
|
void LoopProcess(Core::System& system) {
|
||||||
|
auto server_manager = std::make_unique<ServerManager>(system);
|
||||||
|
|
||||||
|
server_manager->RegisterNamedService("idle:sys",
|
||||||
|
std::make_shared<IPolicyManagerSystem>(system));
|
||||||
|
server_manager->RegisterNamedService("omm", std::make_shared<IOperationModeManager>(system));
|
||||||
|
server_manager->RegisterNamedService("spsm", std::make_shared<IPowerStateInterface>(system));
|
||||||
|
ServerManager::RunServer(std::move(server_manager));
|
||||||
|
}
|
||||||
|
|
||||||
|
} // namespace Service::OMM
|
@ -0,0 +1,14 @@
|
|||||||
|
// SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project
|
||||||
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
namespace Core {
|
||||||
|
class System;
|
||||||
|
}
|
||||||
|
|
||||||
|
namespace Service::OMM {
|
||||||
|
|
||||||
|
void LoopProcess(Core::System& system);
|
||||||
|
|
||||||
|
} // namespace Service::OMM
|
@ -0,0 +1,20 @@
|
|||||||
|
// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
|
||||||
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "core/hle/service/service.h"
|
||||||
|
|
||||||
|
namespace Core {
|
||||||
|
class System;
|
||||||
|
}
|
||||||
|
|
||||||
|
namespace Service::OMM {
|
||||||
|
|
||||||
|
class IOperationModeManager final : public ServiceFramework<IOperationModeManager> {
|
||||||
|
public:
|
||||||
|
explicit IOperationModeManager(Core::System& system_);
|
||||||
|
~IOperationModeManager() override;
|
||||||
|
};
|
||||||
|
|
||||||
|
} // namespace Service::OMM
|
@ -0,0 +1,20 @@
|
|||||||
|
// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
|
||||||
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "core/hle/service/service.h"
|
||||||
|
|
||||||
|
namespace Core {
|
||||||
|
class System;
|
||||||
|
}
|
||||||
|
|
||||||
|
namespace Service::OMM {
|
||||||
|
|
||||||
|
class IPolicyManagerSystem final : public ServiceFramework<IPolicyManagerSystem> {
|
||||||
|
public:
|
||||||
|
explicit IPolicyManagerSystem(Core::System& system_);
|
||||||
|
~IPolicyManagerSystem() override;
|
||||||
|
};
|
||||||
|
|
||||||
|
} // namespace Service::OMM
|
@ -0,0 +1,20 @@
|
|||||||
|
// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
|
||||||
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "core/hle/service/service.h"
|
||||||
|
|
||||||
|
namespace Core {
|
||||||
|
class System;
|
||||||
|
}
|
||||||
|
|
||||||
|
namespace Service::OMM {
|
||||||
|
|
||||||
|
class IPowerStateInterface final : public ServiceFramework<IPowerStateInterface> {
|
||||||
|
public:
|
||||||
|
explicit IPowerStateInterface(Core::System& system_);
|
||||||
|
~IPowerStateInterface() override;
|
||||||
|
};
|
||||||
|
|
||||||
|
} // namespace Service::OMM
|
Loading…
Reference in New Issue