2017-03-03 16:57:41 +01:00
|
|
|
/*
|
|
|
|
* \brief Interface for database of child names
|
|
|
|
* \author Norman Feske
|
|
|
|
* \date 2017-03-03
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _SRC__INIT__NAME_REGISTRY_H_
|
|
|
|
#define _SRC__INIT__NAME_REGISTRY_H_
|
|
|
|
|
|
|
|
/* Genode includes */
|
|
|
|
#include <base/child.h>
|
|
|
|
|
|
|
|
/* local includes */
|
2019-10-03 20:30:26 +02:00
|
|
|
#include "types.h"
|
2017-03-03 16:57:41 +01:00
|
|
|
|
|
|
|
namespace Init { struct Name_registry; }
|
|
|
|
|
|
|
|
struct Init::Name_registry
|
|
|
|
{
|
|
|
|
virtual ~Name_registry() { }
|
|
|
|
|
|
|
|
typedef Child_policy::Name Name;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Return child name for a given alias name
|
|
|
|
*
|
|
|
|
* If there is no alias, the function returns the original name.
|
|
|
|
*/
|
|
|
|
virtual Name deref_alias(Name const &) = 0;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* _SRC__INIT__NAME_REGISTRY_H_ */
|