/*
* \brief Client-side regulator session interface
* \author Stefan Kalkowski
* \date 2013-06-13
*/
/*
* Copyright (C) 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.
*/
#ifndef _INCLUDE__REGULATOR_SESSION__CLIENT_H_
#define _INCLUDE__REGULATOR_SESSION__CLIENT_H_
#include
#include
namespace Regulator { struct Session_client; }
struct Regulator::Session_client : public Genode::Rpc_client
{
/**
* Constructor
*
* \param session session capability
*/
Session_client(Session_capability session)
: Genode::Rpc_client(session) { }
/*********************************
** Regulator session interface **
*********************************/
void level(unsigned long level) override { call(level); }
unsigned long level() override { return call(); }
void state(bool enable) override { call(enable); }
bool state() override { return call(); }
};
#endif /* _INCLUDE__REGULATOR_SESSION__CLIENT_H_ */