genode/repos/base/include/root/client.h

39 lines
957 B
C
Raw Normal View History

2011-12-22 15:19:25 +00:00
/*
* \brief Root client interface
* \author Norman Feske
* \date 2006-05-11
*/
/*
* Copyright (C) 2006-2017 Genode Labs GmbH
2011-12-22 15:19:25 +00:00
*
* This file is part of the Genode OS framework, which is distributed
* under the terms of the GNU Affero General Public License version 3.
2011-12-22 15:19:25 +00:00
*/
#ifndef _INCLUDE__ROOT__CLIENT_H_
#define _INCLUDE__ROOT__CLIENT_H_
#include <root/capability.h>
#include <base/rpc_client.h>
namespace Genode { struct Root_client; }
2011-12-22 15:19:25 +00:00
struct Genode::Root_client : Rpc_client<Root>
{
explicit Root_client(Root_capability root)
: Rpc_client<Root>(root) { }
2011-12-22 15:19:25 +00:00
Session_capability session(Session_args const &args, Affinity const &affinity) override {
return call<Rpc_session>(args, affinity); }
2011-12-22 15:19:25 +00:00
void upgrade(Session_capability session, Upgrade_args const &args) override {
call<Rpc_upgrade>(session, args); }
void close(Session_capability session) override {
call<Rpc_close>(session); }
};
2011-12-22 15:19:25 +00:00
#endif /* _INCLUDE__ROOT__CLIENT_H_ */