mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-27 17:18:53 +00:00
02d07655ce
This patch moves the formerly internal classes of the report-ROM service to the public location os/include/report_rom/ so that they can be reused by other components such as the upcoming clipboard.
52 lines
1.1 KiB
C++
52 lines
1.1 KiB
C++
/*
|
|
* \brief Interfaces for the registry of ROM modules
|
|
* \author Norman Feske
|
|
* \date 2014-01-11
|
|
*/
|
|
|
|
/*
|
|
* Copyright (C) 2014 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 _INCLUDE__REPORT_ROM__ROM_REGISTRY_H_
|
|
#define _INCLUDE__REPORT_ROM__ROM_REGISTRY_H_
|
|
|
|
#include <report_rom/rom_module.h>
|
|
|
|
namespace Rom {
|
|
struct Registry_for_reader;
|
|
struct Registry_for_writer;
|
|
}
|
|
|
|
|
|
struct Rom::Registry_for_reader
|
|
{
|
|
/**
|
|
* Exception type
|
|
*/
|
|
class Lookup_failed { };
|
|
|
|
/**
|
|
* Lookup ROM module for given ROM session label
|
|
*
|
|
* \throw Lookup_failed
|
|
*/
|
|
virtual Readable_module &lookup(Reader &reader,
|
|
Module::Name const &rom_label) = 0;
|
|
|
|
virtual void release(Reader &reader, Readable_module &module) = 0;
|
|
};
|
|
|
|
|
|
struct Rom::Registry_for_writer
|
|
{
|
|
virtual Module &lookup(Writer &writer, Module::Name const &name) = 0;
|
|
|
|
virtual void release(Writer &writer, Module &module) = 0;
|
|
};
|
|
|
|
#endif /* _INCLUDE__REPORT_ROM__ROM_REGISTRY_H_ */
|