2019-06-22 16:11:44 -05:00
|
|
|
#ifndef IPC_VFS_H
|
|
|
|
#define IPC_VFS_H
|
|
|
|
|
|
|
|
typedef enum {
|
2019-06-29 09:13:25 -05:00
|
|
|
VFS_OPEN,
|
2019-08-28 20:32:14 -05:00
|
|
|
VFS_PUTS,
|
2019-06-29 09:13:25 -05:00
|
|
|
VFS_GETC,
|
|
|
|
VFS_CLOSE,
|
|
|
|
VFS_REGISTER_FS,
|
|
|
|
VFS_MOUNT,
|
|
|
|
VFS_UMOUNT
|
2019-06-22 16:11:44 -05:00
|
|
|
} vfs_message_type;
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
vfs_message_type type;
|
|
|
|
uint32_t id;
|
|
|
|
char mode[10];
|
|
|
|
uint32_t fd;
|
2019-06-27 17:00:23 -05:00
|
|
|
char path[4096];
|
2019-07-20 11:03:27 -05:00
|
|
|
uint32_t pos;
|
2019-06-29 09:17:52 -05:00
|
|
|
char flags;
|
2019-07-20 11:03:27 -05:00
|
|
|
int data;
|
2019-08-31 16:46:52 -05:00
|
|
|
void* fs_data;
|
2019-06-22 16:11:44 -05:00
|
|
|
} vfs_message;
|
|
|
|
|
|
|
|
#endif
|