blobsets/genode/dagfs_genode/src/src/dagfs_client.h
2018-09-07 15:40:33 +02:00

29 lines
677 B
C

/*
* \brief C++ base of Dagfs client
* \author Emery Hemingway
* \date 2017-11-08
*/
/*
* Copyright (C) 2017 Genode Labs GmbH
*
* This file is part of the Genode OS framework, which is distributed
* under the terms of the GNU Affero General Public License version 3.
*/
/* Genode includes */
#include <dagfs_session/connection.h>
#include <base/heap.h>
struct DagfsClientBase
{
Genode::Heap heap;
Genode::Allocator_avl tx_packet_alloc { &heap };
Dagfs::Connection conn;
DagfsClientBase(Genode::Env *env, char const *label, Genode::size_t tx_buf_size)
: heap(env->pd(), env->rm()),
conn(*env, tx_packet_alloc, label, tx_buf_size)
{ }
};