105 #define POOL_TYPE_MEMORY 0
106 #define POOL_TYPE_FILE 1
133 char Filename[vmFILENAMESIZE];
148 DATA8 PathList[MAX_PROGRAMS][vmPATHSIZE];
149 POOL pPoolList[MAX_PROGRAMS][MAX_HANDLES];
151 DATA8 Cache[CACHE_DEEPT + 1][vmFILENAMESIZE];
156 #if (HARDWARE == SIMULATION)
158 #define MemoryInstance (*gMemoryInstance)
void cMemoryGetResourcePath(PRGID PrgId, char *pString, DATA8 MaxLength)
void cMemoryArray(void)
opARRAY byte code
RESULT cMemoryClose(PRGID PrgId)
DATA8 cMemoryFindSubFolders(char *pFolderName)
SWORD DATA16
VM Type for 2 byte signed value.
SLONG DATA32
VM Type for 4 byte signed value.
DATA8 cMemoryGetSubFolderName(DATA8 Item, DATA8 MaxLength, char *pFolderName, char *pSubFolderName)
DATA8 cMemoryFindFiles(char *pFolderName)
RESULT cMemoryGetItemIcon(PRGID PrgId, HANDLER Handle, DATA16 Item, HANDLER *pHandle, DATA32 *pImagePointer)
DSPSTAT cMemoryCloseFile(PRGID PrgId, HANDLER Handle)
DATA16 HANDLER
Memory list index.
MEMORY_GLOBALS * getMemoryInstance()
RESULT cMemoryGetItemName(PRGID PrgId, HANDLER Handle, DATA16 Item, DATA8 Length, DATA8 *pName, DATA8 *pType, DATA8 *pPriority)
void * cMemoryResize(PRGID PrgId, HANDLER Handle, DATA32 Elements)
RESULT cMemoryGetItemText(PRGID PrgId, HANDLER Handle, DATA16 Item, DATA8 Length, DATA8 *pText)
RESULT cMemoryGetItem(PRGID PrgId, HANDLER Handle, DATA16 Item, DATA8 Length, DATA8 *pName, DATA8 *pType)
DATA8 cMemoryGetCacheFiles(void)
RESULT cMemoryOpenFolder(PRGID PrgId, DATA8 Type, DATA8 *pFolderName, HANDLER *pHandle)
ULONG GBINDEX
GlobalBytes index type.
void cMemoryArrayWrite(void)
opARRAY_WRITE byte code
RESULT cMemoryArraryPointer(PRGID PrgId, HANDLER Handle, void **pMemory)
RESULT cMemoryGetImage(DATA8 *pText, DATA16 Size, UBYTE *pBmp)
RESULT cMemoryRealloc(void *pOldMemory, void **ppMemory, DATA32 Size)
unsigned char UBYTE
Basic Type used to symbolise 8 bit unsigned values.
RESULT cMemoryGetFolderItems(PRGID PrgId, HANDLER Handle, DATA16 *pItems)
DATA8 cMemoryGetCacheName(DATA8 Item, DATA8 MaxLength, char *pFileName, char *pName)
RESULT cMemoryGetIcon(DATA8 *pFolderName, DATA8 Item, DATA32 *pImagePointer)
RESULT cMemoryMalloc(void **ppMemory, DATA32 Size)
RESULT cMemorySetItemText(PRGID PrgId, HANDLER Handle, DATA16 Item, DATA8 *pText)
MEMORY_GLOBALS * gMemoryInstance
void cMemoryCloseFolder(PRGID PrgId, HANDLER *pHandle)
UWORD PRGID
Program id type.
SBYTE DATA8
VM Type for 1 byte signed value.
RESULT cMemoryGetPointer(PRGID PrgId, HANDLER Handle, void **pMemory)
void cMemoryArrayRead(void)
opARRAY_READ byte code
void cMemoryFileName(void)
opFILENAME byte code
void cMemoryFile(void)
opFILE byte code
void cMemoryArrayAppend(void)
opARRAY_APPEND byte code
void cMemoryUsage(void)
opMEMORY_USAGE byte code
RESULT cMemoryCheckFilename(char *pFilename, char *pPath, char *pName, char *pExt)
RESULT cMemoryGetMediaName(char *pChar, char *pName)
void setMemoryInstance(MEMORY_GLOBALS *_Instance)
RESULT cMemoryCheckOpenWrite(char *pFileName)
void cMemoryGetUsage(DATA32 *pTotal, DATA32 *pFree, DATA8 Force)
RESULT cMemoryOpen(PRGID PrgId, GBINDEX Size, void **pMemory)