os/kernel/vfs.h
2019-03-11 09:32:55 -05:00

22 lines
377 B
C

#ifndef VFS_H
#define VFS_H
#include <stdint.h>
#include "../libc/stdio.h"
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