lib: fs: add library for implementing a filesystem service
This commit is contained in:
15
lib/libfs/include/fs/file.h
Normal file
15
lib/libfs/include/fs/file.h
Normal file
@@ -0,0 +1,15 @@
|
||||
#ifndef FS_FILE_H_
|
||||
#define FS_FILE_H_
|
||||
|
||||
#include <mango/types.h>
|
||||
#include <stddef.h>
|
||||
|
||||
struct fs_file;
|
||||
|
||||
struct fs_file_ops {
|
||||
ssize_t (*f_read)(struct fs_file *, void *, size_t);
|
||||
ssize_t (*f_write)(struct fs_file *, const void *, size_t);
|
||||
off_t (*f_seek)(struct fs_file *, off_t, int);
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user