Add simple async signal example
This commit is contained in:
19
include/signals_session/client.h
Normal file
19
include/signals_session/client.h
Normal file
@@ -0,0 +1,19 @@
|
||||
#ifndef _INCLUDE__SIGNALS_SESSION__CLIENT_H_
|
||||
#define _INCLUDE__SIGNALS_SESSION__CLIENT_H_
|
||||
|
||||
#include <signals_session/signals_session.h>
|
||||
#include <base/rpc_client.h>
|
||||
|
||||
namespace Signals { struct Session_client; }
|
||||
|
||||
struct Signals::Session_client : Genode::Rpc_client<Session>
|
||||
{
|
||||
Session_client(Genode::Capability<Session> cap) : Genode::Rpc_client<Session>(cap) {
|
||||
}
|
||||
|
||||
Genode::Signal_context_capability get_sig_con() override {
|
||||
return call<Rpc_get_sig_con>();
|
||||
}
|
||||
};
|
||||
|
||||
#endif /* _INCLUDE__SIGNALS_SESSION__CLIENT_H_ */
|
||||
Reference in New Issue
Block a user