2011-12-22 15:19:25 +00:00
|
|
|
/*
|
|
|
|
* \brief Root client interface
|
|
|
|
* \author Norman Feske
|
|
|
|
* \date 2006-05-11
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
2013-01-10 20:44:47 +00:00
|
|
|
* Copyright (C) 2006-2013 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 General Public License version 2.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _INCLUDE__ROOT__CLIENT_H_
|
|
|
|
#define _INCLUDE__ROOT__CLIENT_H_
|
|
|
|
|
|
|
|
#include <root/capability.h>
|
|
|
|
#include <base/rpc_client.h>
|
|
|
|
|
|
|
|
namespace Genode {
|
|
|
|
|
|
|
|
struct Root_client : Rpc_client<Root>
|
|
|
|
{
|
|
|
|
explicit Root_client(Root_capability root)
|
|
|
|
: Rpc_client<Root>(root) { }
|
|
|
|
|
2013-08-07 21:10:28 +00:00
|
|
|
Session_capability session(Session_args const &args, Affinity const &affinity) {
|
|
|
|
return call<Rpc_session>(args, affinity); }
|
2011-12-22 15:19:25 +00:00
|
|
|
|
|
|
|
void upgrade(Session_capability session, Upgrade_args const &args) {
|
|
|
|
call<Rpc_upgrade>(session, args); }
|
|
|
|
|
|
|
|
void close(Session_capability session) {
|
|
|
|
call<Rpc_close>(session); }
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* _INCLUDE__ROOT__CLIENT_H_ */
|