2011-12-22 15:19:25 +00:00
|
|
|
/*
|
|
|
|
* \brief Signal-source server interface
|
|
|
|
* \author Norman Feske
|
|
|
|
* \date 2010-02-03
|
|
|
|
*
|
|
|
|
* This file is only included by 'signal_session/server.h' and relies on the
|
|
|
|
* headers included there. No include guards are needed. It is a separate
|
|
|
|
* header file to make it easily replaceable by a platform-specific
|
|
|
|
* implementation.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
2015-03-17 10:49:21 +00:00
|
|
|
* Copyright (C) 2010-2015 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__SIGNAL_SESSION__SOURCE_SERVER_H_
|
|
|
|
#define _INCLUDE__SIGNAL_SESSION__SOURCE_SERVER_H_
|
|
|
|
|
|
|
|
#include <base/rpc_server.h>
|
|
|
|
#include <signal_session/nova_source.h>
|
|
|
|
|
2014-09-30 13:40:16 +00:00
|
|
|
namespace Genode { struct Signal_source_rpc_object; }
|
2011-12-22 15:19:25 +00:00
|
|
|
|
2014-09-30 13:40:16 +00:00
|
|
|
struct Genode::Signal_source_rpc_object : Rpc_object<Nova_signal_source,
|
|
|
|
Signal_source_rpc_object>
|
|
|
|
{
|
2015-03-17 10:49:21 +00:00
|
|
|
public:
|
2011-12-22 15:19:25 +00:00
|
|
|
|
2014-09-30 13:40:16 +00:00
|
|
|
Native_capability _blocking_semaphore;
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
void _register_semaphore(Native_capability const &cap)
|
|
|
|
{
|
|
|
|
if (_blocking_semaphore.valid())
|
|
|
|
PWRN("overwritting blocking signal semaphore !!!");
|
|
|
|
|
|
|
|
_blocking_semaphore = cap;
|
|
|
|
}
|
|
|
|
|
2015-03-17 10:49:21 +00:00
|
|
|
Signal_source_rpc_object() {}
|
2014-09-30 13:40:16 +00:00
|
|
|
};
|
2011-12-22 15:19:25 +00:00
|
|
|
|
|
|
|
#endif /* _INCLUDE__SIGNAL_SESSION__SOURCE_SERVER_H_ */
|