SWILIB API (SG)    
Loading...
Searching...
No Matches
csm.h File Reference
#include "base.h"
#include "wstring.h"
#include "gbs.h"

Go to the source code of this file.

Data Structures

struct  CSM_RAM
 CSM object. More...
 
struct  CSM_DESC
 CSM description. More...
 
struct  CSMQ
 Lists of the CSM. More...
 
struct  CSMROOT
 Root of the all CSM. More...
 
struct  MMICMD
 MMI command for safe and seq operations with CSM. More...
 

Macros

#define NAMECSM_MAGIC1   ((malloc_func_t) 0x55AACCCC)
 CSM title magic for XTask.
 
#define NAMECSM_MAGIC2   ((mfree_func_t) 0x3333AA55)
 CSM title magic for XTask.
 

Typedefs

typedef struct CSM_DESC CSM_DESC
 
typedef struct CSM_RAM CSM_RAM
 
typedef struct CSMQ CSMQ
 
typedef struct CSMROOT CSMROOT
 
typedef struct MMICMD MMICMD
 

Enumerations

enum  CSMState {
  CSM_STATE_OPEN = 0 ,
  CSM_STATE_CLOSED = -3
}
 States of the CSM. More...
 

Functions

CSMROOT * CSM_root ()
 Get the CSM root.
 
int CreateCSM (const CSM_DESC *descr, const void *csm, int unk)
 Create new CSM.
 
CSM_RAM * FindCSMbyID (int id)
 Find CSM by ID.
 
CSM_RAM * FindCSM (CSMQ *csm_q, int id)
 Find CSM by ID in the given list.
 
void CloseCSM (int id)
 Close CSM by ID.