summaryrefslogtreecommitdiff
path: root/interface/fs.h
blob: 5930ffebb2f173272c9b766a1d433378b290fc1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/**
 * @file
 * abstraction layer for filesystems 
 */

#ifndef FOOLOS_FS
#define FOOLOS_FS

#include <stdint.h>

enum FS_FILE_TYPE{
    FS_FILE_TYPE_DIR	=	1,
    FS_FILE_TYPE_FILE	=	2
};

typedef struct fs_dirent_struct
{
    uint32_t    mount;   //mount identifier
    uint32_t	inode;   //inode number or similar
    uint8_t	type;    //FILE OR DIR (FS_FILE_TYPE)
    char	name[255];

}fs_dirent;

#endif