/* * \brief Client-side signal session interface * \author Norman Feske * \date 2009-08-05 */ /* * Copyright (C) 2009-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__SIGNAL_SESSION__CLIENT_H_ #define _INCLUDE__SIGNAL_SESSION__CLIENT_H_ #include #include #include #include namespace Genode { struct Signal_session_client : Rpc_client { explicit Signal_session_client(Signal_session_capability session) : Rpc_client(session) { } Signal_source_capability signal_source() { return call(); } Signal_context_capability alloc_context(long imprint) { return call(imprint); } void free_context(Signal_context_capability cap) { call(cap); } void submit(Signal_context_capability receiver, unsigned cnt = 1) { call(receiver, cnt); } }; } #endif /* _INCLUDE__CAP_SESSION__CLIENT_H_ */