os/kernel/vfs.h

22 lines
369 B
C
Raw Normal View History

2019-03-11 09:32:55 -05:00
#ifndef VFS_H
#define VFS_H
#include <stdint.h>
#include <stdio.h>
2019-03-11 09:32:55 -05:00
typedef enum {
FSOP_MOUNT,
FSOP_OPEN,
FSOP_GETC,
FSOP_PUTC,
FSOP_CLOSE,
FSOP_UMOUNT
} fs_op;
typedef char (*fs_drv)(fs_op op,FILE* stream,void* data1,void* data2);
void init_vfs();
uint32_t register_fs(fs_drv drv,const char* type);
char mount(char* mntpnt,char* dev,char* type);
#endif