mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-29 10:08:53 +00:00
40a5af42eb
This patch moves the base library from src/base to src/lib/base, flattens the library-internal directory structure, and moves the common parts of the library-description files to base/lib/mk/base.inc and base/lib/mk/base-common.inc. Furthermore, the patch fixes a few cosmetic issues (whitespace and comments only) that I encountered while browsing the result. Fixes #1952
52 lines
1.1 KiB
C++
52 lines
1.1 KiB
C++
/*
|
|
* \brief Client-side IRQ session interface
|
|
* \author Christian Helmuth
|
|
* \author Martin Stein
|
|
* \date 2007-09-13
|
|
*/
|
|
|
|
/*
|
|
* Copyright (C) 2007-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__IRQ_SESSION__CLIENT_H_
|
|
#define _INCLUDE__IRQ_SESSION__CLIENT_H_
|
|
|
|
/* Genode includes */
|
|
#include <irq_session/capability.h>
|
|
#include <base/rpc_client.h>
|
|
|
|
namespace Genode { struct Irq_session_client; }
|
|
|
|
/**
|
|
* Client-side IRQ session interface
|
|
*/
|
|
struct Genode::Irq_session_client : Rpc_client<Irq_session>
|
|
{
|
|
/**
|
|
* Constructor
|
|
*
|
|
* \param session pointer to the session backend
|
|
*/
|
|
explicit Irq_session_client(Irq_session_capability const & session)
|
|
:
|
|
Rpc_client<Irq_session>(session)
|
|
{ }
|
|
|
|
|
|
/*****************
|
|
** Irq_session **
|
|
*****************/
|
|
|
|
void ack_irq() override { call<Rpc_ack_irq>(); }
|
|
|
|
void sigh(Signal_context_capability sigh) override { call<Rpc_sigh>(sigh); }
|
|
|
|
Info info() override { return call<Rpc_info>(); }
|
|
};
|
|
|
|
#endif /* _INCLUDE__IRQ_SESSION__CLIENT_H_ */
|