SWILIB API (NSG)    
Loading...
Searching...
No Matches
CSM

Detailed Description

Functions for working with CSM.

CSM is something like application window.

Usage: #include <swilib.h> or #include <swilib/csm.h>

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.
 

Data Structure Documentation

◆ CSM_RAM

struct CSM_RAM

◆ CSM_DESC

struct CSM_DESC

◆ CSMQ

struct CSMQ

◆ CSMROOT

struct CSMROOT

◆ MMICMD

struct MMICMD

Macro Definition Documentation

◆ NAMECSM_MAGIC1

#define NAMECSM_MAGIC1   ((malloc_func_t) 0x55AACCCC)

CSM title magic for XTask.

Definition at line 20 of file csm.h.

◆ NAMECSM_MAGIC2

#define NAMECSM_MAGIC2   ((mfree_func_t) 0x3333AA55)

CSM title magic for XTask.

Definition at line 21 of file csm.h.

Typedef Documentation

◆ CSM_DESC

typedef struct CSM_DESC CSM_DESC

Definition at line 23 of file csm.h.

◆ CSM_RAM

typedef struct CSM_RAM CSM_RAM

Definition at line 24 of file csm.h.

◆ CSMQ

typedef struct CSMQ CSMQ

Definition at line 25 of file csm.h.

◆ CSMROOT

typedef struct CSMROOT CSMROOT

Definition at line 26 of file csm.h.

◆ MMICMD

typedef struct MMICMD MMICMD

Definition at line 27 of file csm.h.

Enumeration Type Documentation

◆ CSMState

enum CSMState

States of the CSM.

Enumerator
CSM_STATE_OPEN 

CSM created.

CSM_STATE_CLOSED 

CSM closed.

Definition at line 32 of file csm.h.

Function Documentation

◆ CSM_root()

CSMROOT * CSM_root ( )

Get the CSM root.

Returns
pointer to the root

◆ CreateCSM()

int CreateCSM ( const CSM_DESC * descr,
const void * csm,
int unk )

Create new CSM.

Parameters
descrpointer to the CSM_DESC
csmpointer to the CSM_RAM with default values
unkset to 0
Returns
CSM ID

◆ FindCSMbyID()

CSM_RAM * FindCSMbyID ( int id)

Find CSM by ID.

Parameters
idCSM ID
Returns
pointer to the CSM object or NULL

◆ FindCSM()

CSM_RAM * FindCSM ( CSMQ * csm_q,
int id )

Find CSM by ID in the given list.

Parameters
csm_qpointer to the CSM list
idCSM ID
Returns
pointer to the CSM object or NULL

◆ CloseCSM()

void CloseCSM ( int id)

Close CSM by ID.

Parameters
idCSM ID