Files
genode/repos/base-tukija/include/cell/client.h
2025-02-24 15:24:06 +01:00

38 lines
870 B
C++

/*
* \brief Client-side Cell interface
* \author Michael Müller
* \date 2025-02-24
*/
/*
* Copyright (C) 2025 Michael Müller <michael.mueller@uos.de>, Osnabrück University
*
* This file is part of EalánOS based on the Genode OS framework, which are distributed
* under the terms of the GNU Affero General Public Lisense version 3.
*/
#ifndef _INCLUDE__CELL__CLIENT_H_
#define _INCLUDE__CELL__CLIENT_H_
#include <cell/cell.h>
#include <base/rpc_client.h>
namespace Ealan {
struct Cell_client;
}
struct Ealan::Cell_client : Genode::Rpc_client<Cell>
{
explicit Cell_client(Cell_capability cap)
: Rpc_client<Cell>(cap) {}
void update(Genode::Affinity &affinity) override {
call<Rpc_update>(affinity);
}
bool is_brick() override {
return call<Rpc_is_brick>();
}
};
#endif /* _INCLUDE__CELL__CLIENT_H_ */