pineapple-src/src/core/hle/service/am/service/application_proxy_service.h

34 lines
896 B
C
Raw Normal View History

2024-02-13 03:52:59 +00:00
// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
#pragma once
#include "core/hle/service/cmif_types.h"
#include "core/hle/service/service.h"
namespace Service {
namespace AM {
struct Applet;
class IApplicationProxy;
2024-02-26 18:02:42 +00:00
class WindowSystem;
2024-02-13 03:52:59 +00:00
class IApplicationProxyService final : public ServiceFramework<IApplicationProxyService> {
public:
2024-02-26 18:02:42 +00:00
explicit IApplicationProxyService(Core::System& system_, WindowSystem& window_system);
2024-02-13 03:52:59 +00:00
~IApplicationProxyService() override;
private:
Result OpenApplicationProxy(Out<SharedPointer<IApplicationProxy>> out_application_proxy,
ClientProcessId pid, InCopyHandle<Kernel::KProcess> process_handle);
private:
std::shared_ptr<Applet> GetAppletFromProcessId(ProcessId pid);
2024-02-26 18:02:42 +00:00
WindowSystem& m_window_system;
2024-02-13 03:52:59 +00:00
};
} // namespace AM
} // namespace Service