32 lines
455 B
C
32 lines
455 B
C
#ifndef IPC_VFS_H
|
|
#define IPC_VFS_H
|
|
|
|
#include <stdint.h>
|
|
|
|
typedef enum {
|
|
VFS_OPEN,
|
|
VFS_PUTS,
|
|
VFS_GETS,
|
|
VFS_CLOSE,
|
|
VFS_REGISTER_FS,
|
|
VFS_MOUNT,
|
|
VFS_UMOUNT,
|
|
VFS_SEEK
|
|
} vfs_message_type;
|
|
|
|
typedef struct {
|
|
char flags;
|
|
vfs_message_type type;
|
|
uint8_t id;
|
|
char mode[10];
|
|
uint32_t fd;
|
|
uint32_t pos;
|
|
int data;
|
|
char in_progress;
|
|
uint32_t orig_mbox;
|
|
void* fs_data;
|
|
char path[4096];
|
|
} __attribute__((packed)) vfs_message;
|
|
|
|
#endif
|