meso: add KLightSession skeleton, remove KBaseSession

This commit is contained in:
TuxSH
2018-11-11 22:53:15 +01:00
committed by Michael Scire
parent eb7e4153d1
commit 9c8f818c29
14 changed files with 165 additions and 159 deletions

View File

@@ -1,10 +0,0 @@
#include <mesosphere/processes/KBaseClientSession.hpp>
namespace mesosphere
{
KBaseClientSession::~KBaseClientSession()
{
}
}

View File

@@ -1,11 +0,0 @@
#include <mesosphere/processes/KBaseServerSession.hpp>
namespace mesosphere
{
KBaseServerSession::~KBaseServerSession()
{
// Children classes will lock critical section + set client "isRemoteAlive"
}
}

View File

@@ -1,17 +0,0 @@
#include <mesosphere/processes/KBaseSession.hpp>
namespace mesosphere
{
KBaseSession::~KBaseSession()
{
}
Result KBaseSession::Initialize()
{
SetClientServerParent();
return ResultSuccess();
}
}

View File

@@ -0,0 +1,12 @@
#include <mesosphere/processes/KLightClientSession.hpp>
namespace mesosphere
{
KLightClientSession::~KLightClientSession()
{
//TODO
}
}

View File

@@ -0,0 +1,17 @@
#include <mesosphere/processes/KLightServerSession.hpp>
namespace mesosphere
{
KLightServerSession::~KLightServerSession()
{
//TODO
}
bool KLightServerSession::IsSignaled() const
{
return false; // TODO
}
}

View File

@@ -0,0 +1,21 @@
#include <mesosphere/processes/KLightSession.hpp>
#include <mesosphere/core/KCoreContext.hpp>
namespace mesosphere
{
KLightSession::~KLightSession()
{
}
Result KLightSession::Initialize()
{
SetClientServerParent();
client.isRemoteActive = true;
server.isRemoteActive = true;
SetResourceOwner(KCoreContext::GetCurrentInstance().GetCurrentProcess());
return ResultSuccess();
}
}