genode/repos/base-sel4/src/core/include/cap_sel_alloc.h
Norman Feske e6729316ff base: uniform base-internal header structure
This patch establishes a common organization of header files
internal to the base framework. The internal headers are located at
'<repository>/src/include/base/internal/'. This structure has been
choosen to make the nature of those headers immediately clear when
included:

  #include <base/internal/lock_helper.h>

Issue #1832
2016-03-07 12:34:45 +01:00

36 lines
738 B
C++

/*
* \brief Interface for capability-selector allocator
* \author Norman Feske
* \date 2015-05-08
*/
/*
* Copyright (C) 2015 Genode Labs GmbH
*
* This file is part of the Genode OS framework, which is distributed
* under the terms of the GNU General Public License version 2.
*/
#ifndef _CORE__INCLUDE__CAP_SEL_ALLOC_H_
#define _CORE__INCLUDE__CAP_SEL_ALLOC_H_
/* Genode includes */
#include <base/exception.h>
/* base-internal includes */
#include <base/internal/capability_space_sel4.h>
namespace Genode { struct Cap_sel_alloc; }
struct Genode::Cap_sel_alloc
{
struct Alloc_failed : Exception { };
virtual Cap_sel alloc() = 0;
virtual void free(Cap_sel) = 0;
};
#endif /* _CORE__INCLUDE__CAP_SEL_ALLOC_H_ */