mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-20 06:07:59 +00:00
ca971bbfd8
This patch changes the top-level directory layout as a preparatory step for improving the tools for managing 3rd-party source codes. The rationale is described in the issue referenced below. Issue #1082
43 lines
1.0 KiB
C++
43 lines
1.0 KiB
C++
/*
|
|
* \brief Client-side Report session interface
|
|
* \author Norman Feske
|
|
* \date 2014-01-10
|
|
*/
|
|
|
|
/*
|
|
* Copyright (C) 2014 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__REPORT_SESSION__CLIENT_H_
|
|
#define _INCLUDE__REPORT_SESSION__CLIENT_H_
|
|
|
|
/* Genode includes */
|
|
#include <base/rpc_client.h>
|
|
#include <report_session/report_session.h>
|
|
|
|
namespace Report { struct Session_client; }
|
|
|
|
|
|
struct Report::Session_client : Genode::Rpc_client<Session>
|
|
{
|
|
Session_client(Genode::Capability<Session> cap)
|
|
: Genode::Rpc_client<Session>(cap) { }
|
|
|
|
Dataspace_capability dataspace() override {
|
|
return call<Rpc_dataspace>(); }
|
|
|
|
void submit(size_t length) override {
|
|
call<Rpc_submit>(length); }
|
|
|
|
void response_sigh(Signal_context_capability cap) override {
|
|
call<Rpc_response_sigh>(cap); }
|
|
|
|
size_t obtain_response() override {
|
|
return call<Rpc_obtain_response>(); }
|
|
};
|
|
|
|
#endif /* _INCLUDE__REPORT_SESSION__CLIENT_H_ */
|