mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-30 18:47:01 +00:00
39 lines
957 B
C++
39 lines
957 B
C++
/*
|
|
* \brief Root client interface
|
|
* \author Norman Feske
|
|
* \date 2006-05-11
|
|
*/
|
|
|
|
/*
|
|
* Copyright (C) 2006-2017 Genode Labs GmbH
|
|
*
|
|
* This file is part of the Genode OS framework, which is distributed
|
|
* under the terms of the GNU Affero General Public License version 3.
|
|
*/
|
|
|
|
#ifndef _INCLUDE__ROOT__CLIENT_H_
|
|
#define _INCLUDE__ROOT__CLIENT_H_
|
|
|
|
#include <root/capability.h>
|
|
#include <base/rpc_client.h>
|
|
|
|
namespace Genode { struct Root_client; }
|
|
|
|
|
|
struct Genode::Root_client : Rpc_client<Root>
|
|
{
|
|
explicit Root_client(Root_capability root)
|
|
: Rpc_client<Root>(root) { }
|
|
|
|
Session_capability session(Session_args const &args, Affinity const &affinity) override {
|
|
return call<Rpc_session>(args, affinity); }
|
|
|
|
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); }
|
|
};
|
|
|
|
#endif /* _INCLUDE__ROOT__CLIENT_H_ */
|