genode/ports/src/noux/file_io_service.h

33 lines
675 B
C
Raw Normal View History

2011-12-22 16:19:25 +01:00
/*
* \brief Interface for operations provided by file I/O service
* \author Norman Feske
* \date 2011-02-17
*/
/*
2012-01-03 15:35:05 +01:00
* Copyright (C) 2011-2012 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_IO_SERVICE_H_
#define _NOUX__FILE_IO_SERVICE_H_
namespace Noux {
class Vfs_handle;
class Sysio;
/**
* Abstract file-system interface
*/
struct File_io_service
{
virtual bool write(Sysio *sysio, Vfs_handle *vfs_handle) = 0;
virtual bool read(Sysio *sysio, Vfs_handle *vfs_handle) = 0;
};
}
#endif /* _NOUX__FILE_IO_SERVICE_H_ */