genode/repos/base-foc/include/signal_session/source_rpc_object.h
Norman Feske ca971bbfd8 Move repositories to 'repos/' subdirectory
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
2014-05-14 16:08:00 +02:00

38 lines
873 B
C++

/*
* \brief Signal-source server interface
* \author Norman Feske
* \date 2010-02-03
*/
/*
* Copyright (C) 2010-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__SOURCE_RPC_OBJECT_H_
#define _INCLUDE__SIGNAL_SESSION__SOURCE_RPC_OBJECT_H_
#include <base/rpc_server.h>
#include <signal_session/foc_source.h>
namespace Genode {
struct Signal_source_rpc_object : Rpc_object<Foc_signal_source, Signal_source_rpc_object>
{
protected:
Native_capability _blocking_semaphore;
public:
Signal_source_rpc_object(Native_capability cap)
: _blocking_semaphore(cap) {}
Native_capability _request_semaphore() { return _blocking_semaphore; }
};
}
#endif /* _INCLUDE__SIGNAL_SESSION__SOURCE_RPC_OBJECT_H_ */