/* * \brief Client-side capture session interface * \author Norman Feske * \date 2020-06-26 */ /* * Copyright (C) 2020 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__CAPTURE_SESSION__CLIENT_H_ #define _INCLUDE__CAPTURE_SESSION__CLIENT_H_ #include #include namespace Capture { struct Session_client; } struct Capture::Session_client : public Genode::Rpc_client { /** * Constructor */ Session_client(Capability session) : Rpc_client(session) { } Area screen_size() const override { return call(); } void screen_size_sigh(Signal_context_capability sigh) override { call(sigh); } void buffer(Area size) override { call(size); } Dataspace_capability dataspace() override { return call(); } Affected_rects capture_at(Point pos) override { return call(pos); } }; #endif /* _INCLUDE__CAPTURE_SESSION__CLIENT_H_ */