Add simple async signal example
This commit is contained in:
21
include/signals_session/signals_session.h
Normal file
21
include/signals_session/signals_session.h
Normal file
@@ -0,0 +1,21 @@
|
||||
#ifndef _INCLUDE__SIGNALS_SESSION__SIGNALS_SESSION_H
|
||||
#define _INCLUDE__SIGNALS_SESSION__SIGNALS_SESSION_H
|
||||
|
||||
#include <session/session.h>
|
||||
#include <base/rpc.h>
|
||||
|
||||
namespace Signals { struct Session; }
|
||||
|
||||
struct Signals::Session : Genode::Session {
|
||||
static const char *service_name() { return "Signals"; }
|
||||
|
||||
enum { CAP_QUOTA = 2 };
|
||||
|
||||
virtual Genode::Signal_context_capability get_sig_con() = 0;
|
||||
|
||||
GENODE_RPC(Rpc_get_sig_con, Genode::Signal_context_capability, get_sig_con);
|
||||
|
||||
GENODE_RPC_INTERFACE(Rpc_get_sig_con);
|
||||
};
|
||||
|
||||
#endif /* _INCLUDE__SIGNALS_SESSION__SIGNALS_SESSION_H */
|
||||
Reference in New Issue
Block a user