2008-04-20 16:25:24 +00:00
|
|
|
/*
|
|
|
|
*
|
2013-09-05 12:39:22 +00:00
|
|
|
* (c) 2008 Laurent Vivier <Laurent@Vivier.EU>
|
2008-04-20 16:25:24 +00:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __EXT2_H__
|
|
|
|
#define __EXT2_H__
|
|
|
|
|
|
|
|
#include <unistd.h>
|
2011-12-18 13:38:58 +00:00
|
|
|
#include <linux/fs.h>
|
2015-11-08 21:42:27 +00:00
|
|
|
#ifdef CONFIG_E2FSLIBS
|
2013-09-04 16:10:46 +00:00
|
|
|
#include <ext2fs/ext2_fs.h>
|
2015-11-08 21:42:27 +00:00
|
|
|
#else
|
|
|
|
#include <linux/ext2_fs.h>
|
|
|
|
#endif
|
2008-04-20 16:25:24 +00:00
|
|
|
|
|
|
|
#include <libstream.h>
|
|
|
|
|
|
|
|
typedef struct ext2_VOLUME {
|
|
|
|
device_io_t *device;
|
|
|
|
struct ext2_super_block *super;
|
|
|
|
unsigned int current;
|
|
|
|
char *buffer;
|
|
|
|
} ext2_VOLUME;
|
|
|
|
|
|
|
|
typedef struct ext2_DIR {
|
|
|
|
ext2_VOLUME *volume;
|
|
|
|
struct ext2_inode *inode;
|
|
|
|
off_t index;
|
|
|
|
} ext2_DIR;
|
|
|
|
|
|
|
|
typedef struct ext2_FILE {
|
|
|
|
ext2_VOLUME *volume;
|
|
|
|
struct ext2_inode *inode;
|
|
|
|
off_t offset;
|
|
|
|
} ext2_FILE;
|
|
|
|
#endif /* __LIBEXT2_H__ */
|