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
This commit is contained in:
Norman Feske
2016-01-20 18:27:18 +01:00
committed by Christian Helmuth
parent be496c6dc1
commit e6729316ff
128 changed files with 179 additions and 203 deletions

View File

@ -25,7 +25,7 @@
#include <base/printf.h>
/* platform-specific local helper functions */
#include <_main_parent_cap.h>
#include <startup/internal/_main_parent_cap.h>
using namespace Genode;

View File

@ -1,33 +0,0 @@
/*
* \brief Obtain parent capability
* \author Norman Feske
* \date 2010-01-26
*
* This implementation is used on platforms that rely on global IDs (thread
* IDs, global unique object IDs) as capability representation.
*/
/*
* Copyright (C) 2010-2013 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 _LIB__STARTUP___MAIN_PARENT_CAP_H_
#define _LIB__STARTUP___MAIN_PARENT_CAP_H_
namespace Genode {
/**
* Return constructed parent capability
*/
Parent_capability parent_cap()
{
Parent_capability cap;
memcpy(&cap, (void *)&_parent_cap, sizeof(cap));
return Parent_capability(cap);
}
}
#endif /* _LIB__STARTUP___MAIN_PARENT_CAP_H_ */