CeDOS - kernel/fat.h

kernel/fat.h (view raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef FAT_H
#define FAT_H

#include <stdint.h>

#include "file.h"

void FAT_init();
int FAT_dir_next(file_t *file, int index, char *fname_buffer);
int FAT_openat(file_t *root, file_t *handle, const char *fname, int flags);
uint32_t FAT_read(file_t *file, uint8_t *buffer, uint32_t count);
off_t FAT_lseek(file_t *file, off_t offset, int whence);
off_t FAT_tell(file_t *file);

extern file_operations_t FAT_fops;


#endif