20#define NAMECSM_MAGIC1 ((malloc_func_t) 0x55AACCCC)
21#define NAMECSM_MAGIC2 ((mfree_func_t) 0x3333AA55)
#define __swi_end(number, func, call)
#define __swi_begin(number)
int datasize
Size of the CSM with custom payload.
CSM_RAM * current_msg_processing_csm
Active CSM.
int(* onMessage)(CSM_RAM *, GBS_MSG *)
Callback for GBS messages.
CSM_DESC * constr
CSM description.
int under_idle_id
Unknown CSM ID.
void * next
Pointer to the next CSM_RAM.
void(* onClose)(CSM_RAM *)
CSM destructor.
int(* proc)(CSMQ *, void *)
Command handler.
void * prev
Pointer to the prev CSM_RAM.
int state
CSM state, see CSMState.
LLQ gui_ll
Linked list of the GUI in this CSM.
CSMQ * csm_q
Lists of the CSM.
void(* onCreate)(CSM_RAM *)
CSM constructor.
int parent_id
Previous CSM ID or -1.
const int * states
Pointer to the int minus11 = -11;
CSM_RAM * FindCSM(CSMQ *csm_q, int id)
Find CSM by ID in the given list.
CSMROOT * CSM_root()
Get the CSM root.
void CloseCSM(int id)
Close CSM by ID.
CSM_RAM * FindCSMbyID(int id)
Find CSM by ID.
int CreateCSM(const CSM_DESC *descr, const void *csm, int unk)
Create new CSM.
CSMState
States of the CSM.
@ CSM_STATE_OPEN
CSM created.
@ CSM_STATE_CLOSED
CSM closed.
MMI command for safe and seq operations with CSM.