2018-11-11 21:53:15 +00:00
|
|
|
#include <mesosphere/processes/KLightSession.hpp>
|
|
|
|
#include <mesosphere/core/KCoreContext.hpp>
|
|
|
|
|
|
|
|
namespace mesosphere
|
|
|
|
{
|
|
|
|
|
|
|
|
KLightSession::~KLightSession()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
Result KLightSession::Initialize()
|
|
|
|
{
|
|
|
|
SetClientServerParent();
|
2018-11-12 08:54:22 +00:00
|
|
|
isClientAlive = true;
|
|
|
|
isServerAlive = true;
|
2018-11-11 21:53:15 +00:00
|
|
|
|
|
|
|
SetResourceOwner(KCoreContext::GetCurrentInstance().GetCurrentProcess());
|
|
|
|
return ResultSuccess();
|
|
|
|
}
|
|
|
|
|
2018-11-12 08:54:22 +00:00
|
|
|
void KLightSession::Terminate(bool fromServer)
|
|
|
|
{
|
|
|
|
server.Terminate(fromServer);
|
|
|
|
}
|
|
|
|
|
2018-11-11 21:53:15 +00:00
|
|
|
}
|