Functions for working with CSM.
CSM is something like application window.
Usage: #include <swilib.h> or #include <swilib/csm.h>
◆ CSM_RAM
◆ CSM_DESC
◆ CSMQ
◆ CSMROOT
◆ MMICMD
◆ NAMECSM_MAGIC1
CSM title magic for XTask.
Definition at line 20 of file csm.h.
◆ NAMECSM_MAGIC2
CSM title magic for XTask.
Definition at line 21 of file csm.h.
◆ 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
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.
◆ CSMState
States of the CSM.
| Enumerator |
|---|
| CSM_STATE_OPEN | CSM created.
|
| CSM_STATE_CLOSED | CSM closed.
|
Definition at line 32 of file csm.h.
◆ CSM_root()
Get the CSM root.
- Returns
- pointer to the root
◆ CreateCSM()
Create new CSM.
- Parameters
-
| descr | pointer to the CSM_DESC |
| csm | pointer to the CSM_RAM with default values |
| unk | set to 0 |
- Returns
- CSM ID
◆ FindCSMbyID()
Find CSM by ID.
- Parameters
-
- Returns
- pointer to the CSM object or NULL
◆ FindCSM()
Find CSM by ID in the given list.
- Parameters
-
| csm_q | pointer to the CSM list |
| id | CSM ID |
- Returns
- pointer to the CSM object or NULL
◆ CloseCSM()
Close CSM by ID.
- Parameters
-