mirror of
https://github.com/mmueller41/genode.git
synced 2026-01-21 12:32:56 +01:00
27 lines
740 B
C++
27 lines
740 B
C++
#ifndef __EALANOS__INCLUDE__SHELL__CLIENT_H_
|
|
#define __EALANOS__INCLUDE__SHELL__CLIENT_H_
|
|
|
|
#include "base/capability.h"
|
|
#include "base/ram_allocator.h"
|
|
#include "region_map/region_map.h"
|
|
#include <base/rpc_client.h>
|
|
#include <ealanos/shell/session.h>
|
|
|
|
namespace Ealan
|
|
{
|
|
namespace Shell
|
|
{
|
|
using Capability = Genode::Capability<Ealan::Shell::Session>;
|
|
|
|
struct Client : Genode::Rpc_client<Ealan::Shell::Session> {
|
|
explicit Client(Capability cap) : Genode::Rpc_client<Ealan::Shell::Session>(cap) { }
|
|
|
|
Genode::Ram_dataspace_capability connect() override { return call<Rpc_connect>(); }
|
|
|
|
void disconnect() override { call<Rpc_disconnect>(); }
|
|
void commit() override { call<Rpc_commit>(); }
|
|
};
|
|
} // namespace Shell
|
|
}
|
|
|
|
#endif |