genode/repos/hello_tutorial/src/hello/client/main.cc
2016-11-30 13:38:06 +01:00

31 lines
620 B
C++

/*
* \brief Test client for the Hello RPC interface
* \author Björn Döbel
* \author Norman Feske
* \date 2008-03-20
*/
/*
* Copyright (C) 2008-2016 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.
*/
#include <base/component.h>
#include <base/log.h>
#include <hello_session/connection.h>
void Component::construct(Genode::Env &env)
{
Hello::Connection hello(env);
hello.say_hello();
int const sum = hello.add(2, 5);
Genode::log("added 2 + 5 = ", sum);
Genode::log("hello test completed");
}