µGFX  2.9
version 2.9
gfile.h File Reference

Detailed Description

GFILE - File IO Routines header file.

Definition in file gfile.h.

#include "../../gfx.h"
#include <stdarg.h>

Go to the source code of this file.

Functions

gBool gfileExists (const char *fname)
 Check if file exists. More...
 
gBool gfileDelete (const char *fname)
 Delete file. More...
 
gFileSize gfileGetFilesize (const char *fname)
 Get the size of a file. More...
 
gBool gfileRename (const char *oldname, const char *newname)
 Rename file. More...
 
GFILEgfileOpen (const char *fname, const char *mode)
 Open file. More...
 
void gfileClose (GFILE *f)
 Close file. More...
 
gMemSize gfileRead (GFILE *f, void *buf, gMemSize len)
 Read from file. More...
 
gMemSize gfileWrite (GFILE *f, const void *buf, gMemSize len)
 Write to file. More...
 
gFileSize gfileGetPos (GFILE *f)
 Get the current position of the read/write cursor. More...
 
gBool gfileSetPos (GFILE *f, gFileSize pos)
 Set the position of the read/write cursor. More...
 
gFileSize gfileGetSize (GFILE *f)
 Get the size of file. More...
 
gBool gfileEOF (GFILE *f)
 Check for EOF. More...
 
gBool gfileMount (char fs, const char *drive)
 Mount a logical drive (aka partition) More...
 
gBool gfileUnmount (char fs, const char *drive)
 Unmount a logical drive (aka partition) More...
 
gBool gfileSync (GFILE *f)
 Syncs the file object (flushes the buffer) More...
 
gfileList * gfileOpenFileList (char fs, const char *path, gBool dirs)
 Open a file list. More...
 
const char * gfileReadFileList (gfileList *pfl)
 Get the next file in a file list. More...
 
void gfileCloseFileList (gfileList *pfl)
 Close a file list. More...
 
GFILEgfileOpenChibiOSFileStream (void *FileStreamPtr, const char *mode)
 Open file from a ChibiOS FileStream. More...
 
GFILEgfileOpenMemory (void *memptr, const char *mode)
 Open file from a memory pointer. More...
 
GFILEgfileOpenString (char *str, const char *mode)
 Open file from a null terminated C string. More...
 

Typedefs

typedef struct GFILE GFILE
 A file pointer. More...