G:/PSP/OSLib_MOD/OSLib_MOD/VirtualFile.h File Reference

Virtual File support for Oldschool Library. This API is meant to be an universal mean to manipulate every file source possible as you can define your own. More...


Data Structures

struct  VIRTUAL_FILE
struct  VIRTUAL_FILE_SOURCE
struct  OSL_VIRTUALFILENAME

Defines

#define VirtualFileWrite(ptr, size, n, f)   (VirtualFileGetSource(f)->fWrite(ptr, size, n, f))
#define VirtualFileRead(ptr, size, n, f)   (VirtualFileGetSource(f)->fRead(ptr, size, n, f))
#define VirtualFileGetc(f)   (VirtualFileGetSource(f)->fGetc(f))
#define VirtualFilePutc(caractere, f)   (VirtualFileGetSource(f)->fPutc(caractere, f))
#define VirtualFileGets(str, maxLen, f)   (VirtualFileGetSource(f)->fGets(str, maxLen, f))
#define VirtualFilePuts(s, f)   (VirtualFileGetSource(f)->fPuts(s, f))
#define VirtualFileSeek(f, offset, whence)   (VirtualFileGetSource(f)->fSeek(f, offset, whence))
#define VirtualFileTell(f)   (VirtualFileGetSource(f)->fTell(f))
#define VirtualFileEof(f)   (VirtualFileGetSource(f)->fEof(f))
#define VF_AUTO   -2

Enumerations

enum  VF_OPEN_MODES { VF_O_READ, VF_O_READWRITE, VF_O_WRITE }

Functions

void VirtualFileInit ()
VIRTUAL_FILEVirtualFileOpen (void *param1, int param2, int type, int mode)
int VirtualFileClose (VIRTUAL_FILE *f)
int VirtualFileRegisterSource (VIRTUAL_FILE_SOURCE *vfs)
OSL_VIRTUALFILENAMEoslFindFileInVirtualFilenameList (const char *fname, int type)
void * oslReadEntireFileToMemory (VIRTUAL_FILE *f, int *size)
int oslInitVfsFile ()
void oslSetDefaultVirtualFileSource (int source)
char * oslGetTempFileName ()
void oslSetTempFileData (void *data, int size, int *type)
int oslAddVirtualFileList (OSL_VIRTUALFILENAME *vfl, int numberOfEntries)
void oslRemoveVirtualFileList (OSL_VIRTUALFILENAME *vfl, int numberOfEntries)

Variables

int VF_MEMORY
int VF_FILE


Detailed Description

Virtual File support for Oldschool Library. This API is meant to be an universal mean to manipulate every file source possible as you can define your own.


Generated on Wed Feb 24 10:25:27 2010 by  doxygen 1.5.9