2011-12-22 16:19:25 +01:00
|
|
|
/*
|
|
|
|
* \brief File-system related interfaces for Noux
|
|
|
|
* \author Norman Feske
|
|
|
|
* \date 2011-02-17
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
2013-01-10 21:44:47 +01:00
|
|
|
* Copyright (C) 2011-2013 Genode Labs GmbH
|
2011-12-22 16:19:25 +01:00
|
|
|
*
|
|
|
|
* This file is part of the Genode OS framework, which is distributed
|
|
|
|
* under the terms of the GNU General Public License version 2.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _NOUX__FILE_SYSTEM_H_
|
|
|
|
#define _NOUX__FILE_SYSTEM_H_
|
|
|
|
|
|
|
|
/* Genode includes */
|
|
|
|
#include <util/list.h>
|
|
|
|
#include <util/string.h>
|
|
|
|
#include <util/xml_node.h>
|
|
|
|
|
|
|
|
/* Noux includes */
|
|
|
|
#include <directory_service.h>
|
|
|
|
#include <file_io_service.h>
|
2012-04-25 23:52:49 +02:00
|
|
|
#include <path.h>
|
2011-12-22 16:19:25 +01:00
|
|
|
#include <noux_session/sysio.h>
|
|
|
|
|
|
|
|
namespace Noux {
|
|
|
|
|
2012-04-25 23:52:49 +02:00
|
|
|
struct File_system : Directory_service, File_io_service
|
2011-12-22 16:19:25 +01:00
|
|
|
{
|
2012-04-25 23:52:49 +02:00
|
|
|
/**
|
|
|
|
* Our next sibling within the same 'Dir_file_system'
|
|
|
|
*/
|
|
|
|
struct File_system *next;
|
|
|
|
|
|
|
|
File_system() : next(0) { }
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Return name of file system
|
|
|
|
*
|
|
|
|
* This function is used for debugging only.
|
|
|
|
*/
|
|
|
|
virtual char const *name() const = 0;
|
2011-12-22 16:19:25 +01:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* _NOUX__FILE_SYSTEM_H_ */
|