LMS 2012
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
c_memory.h File Reference
#include "lms2012.h"

Go to the source code of this file.

Data Structures

struct  POOL
 
struct  DESCR
 
struct  FDESCR
 
struct  MEMORY_GLOBALS
 

Macros

#define POOL_TYPE_MEMORY   0
 
#define POOL_TYPE_FILE   1
 
#define MemoryInstance   (*gMemoryInstance)
 

Functions

RESULT cMemoryInit (void)
 
RESULT cMemoryOpen (PRGID PrgId, GBINDEX Size, void **pMemory)
 
RESULT cMemoryClose (PRGID PrgId)
 
RESULT cMemoryExit (void)
 
RESULT cMemoryMalloc (void **ppMemory, DATA32 Size)
 
RESULT cMemoryRealloc (void *pOldMemory, void **ppMemory, DATA32 Size)
 
RESULT cMemoryGetPointer (PRGID PrgId, HANDLER Handle, void **pMemory)
 
RESULT cMemoryArraryPointer (PRGID PrgId, HANDLER Handle, void **pMemory)
 
DATA8 cMemoryGetCacheFiles (void)
 
DATA8 cMemoryGetCacheName (DATA8 Item, DATA8 MaxLength, char *pFileName, char *pName)
 
DATA8 cMemoryFindSubFolders (char *pFolderName)
 
DATA8 cMemoryGetSubFolderName (DATA8 Item, DATA8 MaxLength, char *pFolderName, char *pSubFolderName)
 
DATA8 cMemoryFindFiles (char *pFolderName)
 
void cMemoryGetResourcePath (PRGID PrgId, char *pString, DATA8 MaxLength)
 
RESULT cMemoryGetIcon (DATA8 *pFolderName, DATA8 Item, DATA32 *pImagePointer)
 
RESULT cMemoryGetImage (DATA8 *pText, DATA16 Size, UBYTE *pBmp)
 
DSPSTAT cMemoryCloseFile (PRGID PrgId, HANDLER Handle)
 
RESULT cMemoryCheckOpenWrite (char *pFileName)
 
RESULT cMemoryCheckFilename (char *pFilename, char *pPath, char *pName, char *pExt)
 
RESULT cMemoryGetMediaName (char *pChar, char *pName)
 
void cMemoryFile (void)
 opFILE byte code More...
 
void cMemoryArray (void)
 opARRAY byte code More...
 
void cMemoryArrayWrite (void)
 opARRAY_WRITE byte code More...
 
void cMemoryArrayRead (void)
 opARRAY_READ byte code More...
 
void cMemoryArrayAppend (void)
 opARRAY_APPEND byte code More...
 
void * cMemoryResize (PRGID PrgId, HANDLER Handle, DATA32 Elements)
 
void cMemoryFileName (void)
 opFILENAME byte code More...
 
RESULT cMemoryOpenFolder (PRGID PrgId, DATA8 Type, DATA8 *pFolderName, HANDLER *pHandle)
 
RESULT cMemoryGetFolderItems (PRGID PrgId, HANDLER Handle, DATA16 *pItems)
 
RESULT cMemoryGetItemName (PRGID PrgId, HANDLER Handle, DATA16 Item, DATA8 Length, DATA8 *pName, DATA8 *pType, DATA8 *pPriority)
 
RESULT cMemoryGetItemIcon (PRGID PrgId, HANDLER Handle, DATA16 Item, HANDLER *pHandle, DATA32 *pImagePointer)
 
RESULT cMemoryGetItemText (PRGID PrgId, HANDLER Handle, DATA16 Item, DATA8 Length, DATA8 *pText)
 
RESULT cMemorySetItemText (PRGID PrgId, HANDLER Handle, DATA16 Item, DATA8 *pText)
 
RESULT cMemoryGetItem (PRGID PrgId, HANDLER Handle, DATA16 Item, DATA8 Length, DATA8 *pName, DATA8 *pType)
 
void cMemoryCloseFolder (PRGID PrgId, HANDLER *pHandle)
 
void cMemoryGetUsage (DATA32 *pTotal, DATA32 *pFree, DATA8 Force)
 
void cMemoryUsage (void)
 opMEMORY_USAGE byte code More...
 
void setMemoryInstance (MEMORY_GLOBALS *_Instance)
 
MEMORY_GLOBALSgetMemoryInstance ()
 

Variables

MEMORY_GLOBALSgMemoryInstance
 

Macro Definition Documentation

#define MemoryInstance   (*gMemoryInstance)

Definition at line 158 of file c_memory.h.

#define POOL_TYPE_FILE   1

Definition at line 106 of file c_memory.h.

#define POOL_TYPE_MEMORY   0

Definition at line 105 of file c_memory.h.

Function Documentation

RESULT cMemoryArraryPointer ( PRGID  PrgId,
HANDLER  Handle,
void **  pMemory 
)

Definition at line 277 of file c_memory.c.

void cMemoryArray ( void  )

opARRAY byte code

Definition at line 3392 of file c_memory.c.

void cMemoryArrayAppend ( void  )

opARRAY_APPEND byte code

Definition at line 4134 of file c_memory.c.

void cMemoryArrayRead ( void  )

opARRAY_READ byte code

Definition at line 4047 of file c_memory.c.

void cMemoryArrayWrite ( void  )

opARRAY_WRITE byte code

Definition at line 3935 of file c_memory.c.

RESULT cMemoryCheckFilename ( char *  pFilename,
char *  pPath,
char *  pName,
char *  pExt 
)

Definition at line 552 of file c_memory.c.

RESULT cMemoryCheckOpenWrite ( char *  pFileName)

Definition at line 1199 of file c_memory.c.

RESULT cMemoryClose ( PRGID  PrgId)

Definition at line 437 of file c_memory.c.

DSPSTAT cMemoryCloseFile ( PRGID  PrgId,
HANDLER  Handle 
)

Definition at line 1421 of file c_memory.c.

void cMemoryCloseFolder ( PRGID  PrgId,
HANDLER pHandle 
)

Definition at line 2064 of file c_memory.c.

RESULT cMemoryExit ( void  )

Definition at line 448 of file c_memory.c.

void cMemoryFile ( void  )

opFILE byte code

Definition at line 2303 of file c_memory.c.

void cMemoryFileName ( void  )

opFILENAME byte code

Definition at line 4347 of file c_memory.c.

DATA8 cMemoryFindFiles ( char *  pFolderName)

Definition at line 1038 of file c_memory.c.

DATA8 cMemoryFindSubFolders ( char *  pFolderName)

Definition at line 763 of file c_memory.c.

DATA8 cMemoryGetCacheFiles ( void  )

Definition at line 1021 of file c_memory.c.

DATA8 cMemoryGetCacheName ( DATA8  Item,
DATA8  MaxLength,
char *  pFileName,
char *  pName 
)

Definition at line 986 of file c_memory.c.

RESULT cMemoryGetFolderItems ( PRGID  PrgId,
HANDLER  Handle,
DATA16 pItems 
)

Definition at line 1742 of file c_memory.c.

RESULT cMemoryGetIcon ( DATA8 pFolderName,
DATA8  Item,
DATA32 pImagePointer 
)

Definition at line 1071 of file c_memory.c.

RESULT cMemoryGetImage ( DATA8 pText,
DATA16  Size,
UBYTE pBmp 
)

Definition at line 1480 of file c_memory.c.

RESULT cMemoryGetItem ( PRGID  PrgId,
HANDLER  Handle,
DATA16  Item,
DATA8  Length,
DATA8 pName,
DATA8 pType 
)

Definition at line 2023 of file c_memory.c.

RESULT cMemoryGetItemIcon ( PRGID  PrgId,
HANDLER  Handle,
DATA16  Item,
HANDLER pHandle,
DATA32 pImagePointer 
)

Definition at line 1869 of file c_memory.c.

RESULT cMemoryGetItemName ( PRGID  PrgId,
HANDLER  Handle,
DATA16  Item,
DATA8  Length,
DATA8 pName,
DATA8 pType,
DATA8 pPriority 
)

Definition at line 1815 of file c_memory.c.

RESULT cMemoryGetItemText ( PRGID  PrgId,
HANDLER  Handle,
DATA16  Item,
DATA8  Length,
DATA8 pText 
)

Definition at line 1921 of file c_memory.c.

RESULT cMemoryGetMediaName ( char *  pChar,
char *  pName 
)

Definition at line 1504 of file c_memory.c.

RESULT cMemoryGetPointer ( PRGID  PrgId,
HANDLER  Handle,
void **  pMemory 
)

Definition at line 252 of file c_memory.c.

void cMemoryGetResourcePath ( PRGID  PrgId,
char *  pString,
DATA8  MaxLength 
)

Definition at line 1065 of file c_memory.c.

DATA8 cMemoryGetSubFolderName ( DATA8  Item,
DATA8  MaxLength,
char *  pFolderName,
char *  pSubFolderName 
)

Definition at line 852 of file c_memory.c.

void cMemoryGetUsage ( DATA32 pTotal,
DATA32 pFree,
DATA8  Force 
)

Definition at line 104 of file c_memory.c.

RESULT cMemoryInit ( void  )

Definition at line 375 of file c_memory.c.

RESULT cMemoryMalloc ( void **  ppMemory,
DATA32  Size 
)

Definition at line 140 of file c_memory.c.

RESULT cMemoryOpen ( PRGID  PrgId,
GBINDEX  Size,
void **  pMemory 
)

Definition at line 426 of file c_memory.c.

RESULT cMemoryOpenFolder ( PRGID  PrgId,
DATA8  Type,
DATA8 pFolderName,
HANDLER pHandle 
)

Definition at line 1690 of file c_memory.c.

RESULT cMemoryRealloc ( void *  pOldMemory,
void **  ppMemory,
DATA32  Size 
)

Definition at line 160 of file c_memory.c.

void* cMemoryResize ( PRGID  PrgId,
HANDLER  Handle,
DATA32  Elements 
)

Definition at line 468 of file c_memory.c.

RESULT cMemorySetItemText ( PRGID  PrgId,
HANDLER  Handle,
DATA16  Item,
DATA8 pText 
)

Definition at line 1982 of file c_memory.c.

void cMemoryUsage ( void  )

opMEMORY_USAGE byte code

Definition at line 4257 of file c_memory.c.

MEMORY_GLOBALS* getMemoryInstance ( )

Definition at line 86 of file c_memory.c.

void setMemoryInstance ( MEMORY_GLOBALS _Instance)

Definition at line 81 of file c_memory.c.

Variable Documentation

MEMORY_GLOBALS* gMemoryInstance

Definition at line 79 of file c_memory.c.