0.0.2d: Added BGA support, graphics!
This commit is contained in:
@ -4,7 +4,32 @@
|
||||
#include <types.h>
|
||||
|
||||
|
||||
#define MAX_FDS 64
|
||||
|
||||
struct file;
|
||||
|
||||
struct inode {
|
||||
size_t size;
|
||||
int permissions;
|
||||
/* | | */
|
||||
/* \/ FS-specific \/ */
|
||||
union {
|
||||
void* fs_data;
|
||||
void* private_data;
|
||||
};
|
||||
};
|
||||
|
||||
struct file_ops {
|
||||
int (*read)(struct file*, char*, size_t);
|
||||
int (*write)(struct file*, const char*, size_t);
|
||||
};
|
||||
|
||||
struct file {
|
||||
struct inode* f_inode;
|
||||
size_t f_offset;
|
||||
size_t f_refcount;
|
||||
const struct file_ops* f_ops;
|
||||
};
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user