Add simple async signal example
This commit is contained in:
14
include/signals_session/connection.h
Normal file
14
include/signals_session/connection.h
Normal file
@@ -0,0 +1,14 @@
|
||||
#ifndef _INCLUDE__SIGNALS_SESSION__CONNECTION_H_
|
||||
#define _INCLUDE__SIGNALS_SESSION__CONNECTION_H_
|
||||
|
||||
#include <signals_session/client.h>
|
||||
#include <base/connection.h>
|
||||
|
||||
namespace Signals { struct Connection; }
|
||||
|
||||
struct Signals::Connection : Genode::Connection<Session>, Session_client {
|
||||
Connection(Genode::Env &env) : Genode::Connection<Signals::Session>(env, session(env.parent(), "ram_quota=6K, cap_quota=4")),
|
||||
Session_client(cap()) { }
|
||||
};
|
||||
|
||||
#endif /* _INCLUDE__SIGNALS_SESSION__CONNECTION_H_ */
|
||||
Reference in New Issue
Block a user