repo2/firmware_eclairexl/simplefile.h @ 1475
46 | markw | #pragma once
|
|
enum SimpleFileStatus {SimpleFile_OK, SimpleFile_FAIL};
|
|||
struct SimpleFile;
|
|||
// NB when switching file, the other file may loose its position, depending on implementation!
|
|||
int file_struct_size();
|
|||
52 | markw | void file_init(struct SimpleFile * file);
|
|
64 | markw | char const * file_path(struct SimpleFile * file);
|
|
46 | markw | char const * file_name(struct SimpleFile * file);
|
|
enum SimpleFileStatus file_read(struct SimpleFile * file, void * buffer, int bytes, int * bytesread);
|
|||
enum SimpleFileStatus file_seek(struct SimpleFile * file, int offsetFromStart);
|
|||
int file_size(struct SimpleFile * file);
|
|||
62 | markw | int file_readonly(struct SimpleFile * file);
|
|
46 | markw | ||
49 | markw | enum SimpleFileStatus file_write(struct SimpleFile * file, void * buffer, int bytes, int * byteswritten);
|
|
enum SimpleFileStatus file_write_flush();
|