2011-12-22 15:19:25 +00:00
|
|
|
/*
|
|
|
|
* \brief Client-side input session interface
|
|
|
|
* \author Norman Feske
|
|
|
|
* \date 2006-08-16
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
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__INPUT_SESSION__CLIENT_H_
|
|
|
|
#define _INCLUDE__INPUT_SESSION__CLIENT_H_
|
|
|
|
|
|
|
|
#include <input_session/capability.h>
|
|
|
|
#include <base/rpc_client.h>
|
|
|
|
|
|
|
|
namespace Input {
|
|
|
|
|
|
|
|
struct Session_client : Genode::Rpc_client<Session>
|
|
|
|
{
|
|
|
|
explicit Session_client(Session_capability session)
|
|
|
|
: Genode::Rpc_client<Session>(session) { }
|
|
|
|
|
2014-05-07 08:33:20 +00:00
|
|
|
Genode::Dataspace_capability dataspace() override {
|
2011-12-22 15:19:25 +00:00
|
|
|
return call<Rpc_dataspace>(); }
|
|
|
|
|
2014-05-07 08:33:20 +00:00
|
|
|
bool is_pending() const override {
|
2011-12-22 15:19:25 +00:00
|
|
|
return call<Rpc_is_pending>(); }
|
|
|
|
|
2014-05-07 08:33:20 +00:00
|
|
|
int flush() override {
|
2011-12-22 15:19:25 +00:00
|
|
|
return call<Rpc_flush>(); }
|
2014-05-07 08:33:20 +00:00
|
|
|
|
|
|
|
void sigh(Genode::Signal_context_capability sigh) override {
|
|
|
|
call<Rpc_sigh>(sigh); }
|
2011-12-22 15:19:25 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* _INCLUDE__INPUT_SESSION__CLIENT_H_ */
|