2015-06-08 09:05:32 +02:00
|
|
|
/*
|
|
|
|
* \brief Connection to Platform service
|
|
|
|
* \author Norman Feske
|
|
|
|
* \date 2008-08-22
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Copyright (C) 2008-2015 Genode Labs GmbH
|
|
|
|
*
|
|
|
|
* This file is part of the Genode OS framework, which is distributed
|
|
|
|
* under the terms of the GNU General Public License version 2.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <base/connection.h>
|
|
|
|
#include <platform_session/client.h>
|
|
|
|
|
|
|
|
namespace Platform { struct Connection; }
|
|
|
|
|
|
|
|
|
|
|
|
struct Platform::Connection : Genode::Connection<Session>, Client
|
|
|
|
{
|
2016-05-10 17:24:51 +02:00
|
|
|
/**
|
|
|
|
* Constructor
|
|
|
|
*/
|
|
|
|
Connection(Genode::Env &env)
|
|
|
|
:
|
|
|
|
Genode::Connection<Session>(env, session("ram_quota=20K")),
|
|
|
|
Client(cap())
|
|
|
|
{ }
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Constructor
|
|
|
|
*
|
|
|
|
* \noapi
|
|
|
|
* \deprecated Use the constructor with 'Env &' as first
|
|
|
|
* argument instead
|
|
|
|
*/
|
2015-06-08 09:05:32 +02:00
|
|
|
Connection()
|
|
|
|
:
|
2015-11-05 22:15:50 +01:00
|
|
|
Genode::Connection<Session>(session("ram_quota=20K")),
|
2015-06-08 09:05:32 +02:00
|
|
|
Client(cap())
|
|
|
|
{ }
|
|
|
|
};
|