genode/repos/base/include/irq_session/client.h

52 lines
1.1 KiB
C
Raw Normal View History

2011-12-22 15:19:25 +00:00
/*
* \brief Client-side IRQ session interface
* \author Christian Helmuth
* \author Martin Stein
2011-12-22 15:19:25 +00:00
* \date 2007-09-13
*/
/*
2013-01-10 20:44:47 +00:00
* Copyright (C) 2007-2013 Genode Labs GmbH
2011-12-22 15:19:25 +00:00
*
* 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 */
2011-12-22 15:19:25 +00:00
#include <irq_session/capability.h>
#include <base/rpc_client.h>
namespace Genode { struct Irq_session_client; }
2011-12-22 15:19:25 +00:00
/**
* 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;
void sigh(Signal_context_capability sigh) override { call<Rpc_sigh>(sigh); }
Info info() override { return call<Rpc_info>(); }
};
2011-12-22 15:19:25 +00:00
#endif /* _INCLUDE__IRQ_SESSION__CLIENT_H_ */