26 lines
429 B
C
26 lines
429 B
C
#ifndef UNS_VFS_H
|
|
#define UNS_VFS_H
|
|
|
|
#include <stdint.h>
|
|
|
|
enum vfs_entry_type {
|
|
vfs_file = 1,
|
|
vfs_dir = 2,
|
|
};
|
|
|
|
typedef struct vfs_entry {
|
|
char name[64];
|
|
struct vfs_entry *parent;
|
|
|
|
enum vfs_entry_type type;
|
|
uint16_t driver;
|
|
|
|
// dir only
|
|
struct vfs_entry *childs;
|
|
struct vfs_entry *next;
|
|
} vfs_entry_t;
|
|
|
|
void vfs_init(void);
|
|
// const vfs_entry_t *vfs_get_root(void);
|
|
|
|
#endif // #ifndef UNS_VFS_H
|