2012-06-11 15:01:51 +00:00
|
|
|
/*
|
|
|
|
* \brief A server for connecting two 'Terminal' sessions
|
|
|
|
* \author Christian Prochaska
|
|
|
|
* \date 2012-05-16
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
2013-01-10 20:44:47 +00:00
|
|
|
* Copyright (C) 2012-2013 Genode Labs GmbH
|
2012-06-11 15:01:51 +00:00
|
|
|
*
|
|
|
|
* This file is part of the Genode OS framework, which is distributed
|
|
|
|
* under the terms of the GNU General Public License version 2.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* Genode includes */
|
|
|
|
#include <cap_session/connection.h>
|
|
|
|
#include <base/printf.h>
|
|
|
|
#include <base/rpc_server.h>
|
|
|
|
#include <base/sleep.h>
|
|
|
|
|
|
|
|
/* local includes */
|
|
|
|
#include "terminal_root.h"
|
|
|
|
|
|
|
|
int main(int argc, char **argv)
|
|
|
|
{
|
|
|
|
using namespace Genode;
|
|
|
|
|
|
|
|
static Cap_connection cap;
|
|
|
|
static Rpc_entrypoint ep(&cap, Terminal::STACK_SIZE, "terminal_ep");
|
|
|
|
|
|
|
|
static Terminal::Root terminal_root(&ep, env()->heap(), cap);
|
|
|
|
env()->parent()->announce(ep.manage(&terminal_root));
|
|
|
|
|
|
|
|
sleep_forever();
|
|
|
|
return 0;
|
|
|
|
}
|