/* * \brief Client-side loader-session interface * \author Christian Prochaska * \date 2009-10-05 */ /* * Copyright (C) 2009-2012 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__LOADER_SESSION__CLIENT_H_ #define _INCLUDE__LOADER_SESSION__CLIENT_H_ #include #include #include #include namespace Loader { struct Session_client : Rpc_client { explicit Session_client(Loader::Session_capability session) : Rpc_client(session) { } Dataspace_capability alloc_rom_module(Name const &name, size_t size) { return call(name, size); } void commit_rom_module(Name const &name) { call(name); } void ram_quota(size_t quantum) { call(quantum); } void constrain_geometry(int width, int height) { call(width, height); } void view_ready_sigh(Signal_context_capability sigh) { call(sigh); } void start(Name const &binary, Name const &label = "") { call(binary, label); } Nitpicker::View_capability view() { return call(); } View_geometry view_geometry() { return call(); } }; } #endif /* _INCLUDE__PLUGIN_SESSION__CLIENT_H_ */