|
|
@ -3,7 +3,7 @@
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
|
|
|
|
#include <tuple>
|
|
|
|
#include <tuple>
|
|
|
|
|
|
|
|
#include "common/archives.h"
|
|
|
|
#include "core/hle/kernel/client_port.h"
|
|
|
|
#include "core/hle/kernel/client_port.h"
|
|
|
|
#include "core/hle/kernel/client_session.h"
|
|
|
|
#include "core/hle/kernel/client_session.h"
|
|
|
|
#include "core/hle/kernel/hle_ipc.h"
|
|
|
|
#include "core/hle/kernel/hle_ipc.h"
|
|
|
@ -11,6 +11,8 @@
|
|
|
|
#include "core/hle/kernel/session.h"
|
|
|
|
#include "core/hle/kernel/session.h"
|
|
|
|
#include "core/hle/kernel/thread.h"
|
|
|
|
#include "core/hle/kernel/thread.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SERIALIZE_EXPORT_IMPL(Kernel::ServerSession)
|
|
|
|
|
|
|
|
|
|
|
|
namespace Kernel {
|
|
|
|
namespace Kernel {
|
|
|
|
|
|
|
|
|
|
|
|
ServerSession::ServerSession() : kernel(*g_kernel) {}
|
|
|
|
ServerSession::ServerSession() : kernel(*g_kernel) {}
|
|
|
@ -124,7 +126,8 @@ ResultCode ServerSession::HandleSyncRequest(std::shared_ptr<Thread> thread) {
|
|
|
|
KernelSystem::SessionPair KernelSystem::CreateSessionPair(const std::string& name,
|
|
|
|
KernelSystem::SessionPair KernelSystem::CreateSessionPair(const std::string& name,
|
|
|
|
std::shared_ptr<ClientPort> port) {
|
|
|
|
std::shared_ptr<ClientPort> port) {
|
|
|
|
auto server_session = ServerSession::Create(*this, name + "_Server").Unwrap();
|
|
|
|
auto server_session = ServerSession::Create(*this, name + "_Server").Unwrap();
|
|
|
|
auto client_session{std::make_shared<ClientSession>(*this)};
|
|
|
|
auto client_session{std::make_shared<ClientSession>()};
|
|
|
|
|
|
|
|
client_session->Init(*this);
|
|
|
|
client_session->name = name + "_Client";
|
|
|
|
client_session->name = name + "_Client";
|
|
|
|
|
|
|
|
|
|
|
|
std::shared_ptr<Session> parent(new Session);
|
|
|
|
std::shared_ptr<Session> parent(new Session);
|
|
|
|