genode/repos/os/src/server/terminal_crosslink/main.cc
Norman Feske ca971bbfd8 Move repositories to 'repos/' subdirectory
This patch changes the top-level directory layout as a preparatory
step for improving the tools for managing 3rd-party source codes.
The rationale is described in the issue referenced below.

Issue #1082
2014-05-14 16:08:00 +02:00

36 lines
804 B
C++

/*
* \brief A server for connecting two 'Terminal' sessions
* \author Christian Prochaska
* \date 2012-05-16
*/
/*
* Copyright (C) 2012-2013 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.
*/
/* 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;
}