/* * \brief Client-side GUI session interface * \author Norman Feske * \date 2006-08-23 */ /* * 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__GUI_SESSION__CLIENT_H_ #define _INCLUDE__GUI_SESSION__CLIENT_H_ #include #include namespace Gui { struct Session_client; } struct Gui::Session_client : Rpc_client { Session_client(Capability session) : Rpc_client(session) { } Framebuffer::Session_capability framebuffer() override { return call(); } Input::Session_capability input() override { return call(); } View_result view(View_id id, View_attr const &attr) override { return call(id, attr); } Child_view_result child_view(View_id id, View_id parent, View_attr const &attr) override { return call(id, parent, attr); } void destroy_view(View_id view) override { call(view); } Associate_result associate(View_id id, View_capability view) override { return call(id, view); } View_capability_result view_capability(View_id id) override { return call(id); } void release_view_id(View_id id) override { call(id); } Dataspace_capability command_dataspace() override { return call(); } void execute() override { call(); } Framebuffer::Mode mode() override { return call(); } void mode_sigh(Signal_context_capability sigh) override { call(sigh); } Buffer_result buffer(Framebuffer::Mode mode, bool alpha) override { return call(mode, alpha); } void focus(Gui::Session_capability session) override { call(session); } }; #endif /* _INCLUDE__GUI_SESSION__CLIENT_H_ */