#define __swi_variadic_begin(number)
#define __swi_end(number, func, call)
#define __swi_variadic_end(number, func,...)
#define __swi_begin(number)
uint32_t maxmembers
Maximum members in the group.
int param6
Custom user param.
int param5
Custom user param.
char * name
Nucleus task name.
uint16_t prio
Nucleus task priority.
void * data0
Custom payload.
void(* on_destroy)(MOPI_MSG **msg)
Called when the message is freed, NULL = none.
int submess
Sub message ID.
int pid_from
Sender cepid.
uint16_t msg_id
Message ID.
void * data1
Custom payload.
int param4
Custom user param.
const char * name_from
IPC sender.
uint16_t size
Payload size.
int param2
Custom user param.
int param0
Internal timer data, do not change.
int param3
Custom user param.
uint16_t cepid_to
Destination CEPID.
uint16_t cepid_from
Sender CEPID.
uint32_t id
Process group ID (first byte of CEPID)
uint16_t stacksize
Nucleus task stack size.
const char * name_to
IPC receiver.
int param1
Internal timer state, do not change.
void * GBS_GetCurrentTask()
Get current GBS task.
void GBS_StopTimer(GBSTMR *timer)
Stop active timer.
void GBS_StartTimerProc(GBSTMR *timer, long ticks, GBSTMR_CALLBACK callback)
Start GBS timer with callback.
void(* GBS_PROC_CALLBACK)()
void * GBS_CreateMsg(void **msg, int cepid_to, int msg_id, int size)
Create a MOPI message.
void * MemMBPAlloc(void *pool, int size)
Alloc memory in the given memory pool.
void * GBS_GetMsgPayload(GBS_MSG *msg)
Get the payload of a received GBS message.
void * GBS_CreateProcessGroupResource(int mask, int unk_zero, PGROUP *pgroup, int size)
Create new GBS Process Group Resource.
int GBS_GetCurCepid(void)
Get current CEPID.
void GBS_PostMsg(void **msg)
Post a message created with MOPI_CreateMessage to its destination (sets the handle to NULL).
void * RamMopiResourcePool()
Pointer to the MOPI memory pool.
void(* GBSTMR_CALLBACK)(GBSTMR *)
void GBS_AcceptMessage(void)
ACK message received with GBS_RecActDstMessage.
void GBS_SendMessage(int cepid, int msg,...)
Send message to the GBS event processor.
int GBS_WaitForMsg(const int *msg_list, int msgs_num, GBS_MSG *msgs, int timeout_ms)
Wait for the GBS messages.
void * MOPI_CreateMessage(MOPI_MSG **msg, int cepid_to, int msg_id, int size)
Create a MOPI message.
int IsTimerProc(GBSTMR *timer)
Check if timer is not yet expired.
void MemMBPFree(void *pool, void *ptr)
Free memory allocated with MemMBPAlloc.
void CreateICL(PGROUP *pgroup)
Create new GBS Process Group.
GbsMsgID
Common GBS message IDs.
void GBS_DelTimer(GBSTMR *timer)
Delete timer.
void * GetGBSProcAddress(short cepid)
Get address of the GBS event processor.
int GBS_ReciveMessage(GBS_MSG *msg)
Receive GBS message inside GBS processor.
PGROUP * GBS_GetProcGroup(int cepid)
Find a GBS process group.
void KillGBSproc(int cepid)
Delete GBS Event Processor.
void GBS_StartTimer(GBSTMR *timer, int ticks, int msg_id, int unk, int cepid)
Start GBS timer that sends a message to cepid when it expires.
void CreateGBSproc(int cepid, const char *name, GBS_PROC_CALLBACK callback, int prio, int unk)
Create GBS Event Processor.
int GBS_RecActDstMessage(GBS_MSG *msg)
Receive a message from the queue without auto-ACK.
void GBS_DestroyMessage(GBS_MSG *msg)
Destroy GSB_MSG object.
void GBS_PendMessage(const GBS_MSG *msg)
Pend the message for future processing.
void MOPI_PostMessage(MOPI_MSG **msg)
Post a message created with MOPI_CreateMessage to its destination (sets the handle to NULL).
void GBS_ClearMessage(void)
Clear the message queue of the current GBS process.
@ LCD_DISPLAYQUEUE_CEPID
LCD_DISPLAYQUEUE.
@ IDM_PROCESS_CEPID
IDM_PROCESS.
@ MSG_STATE_OF_CALL
State of the call.
@ MSG_HELPER_TRANSLATOR
Translated msg from HELPER to MMI.
@ MSG_SMS_RX
Incoming SMS.
@ MSG_IDLETMR_EXPIRED
IDLE timer expired.
@ MSG_SMS_TX
Outgoing SMS.
@ MSG_CSM_DESTROYED
CSM destroyed.
@ MSG_IPC
ELFs IPC message.
@ MSG_PLAYFILE_REPORT
PlayFile status reporting.
@ MSG_CSM_DESTROY_NOTIFY
CSM will be destroyed.
@ MSG_USSD_RX
USSD result.
@ MSG_AUTOUSSD_RX
USSD result (???)
@ MSG_INCOMMING_CALL
Incoming call.
@ MSG_RECONFIGURE_REQ
Config chaged (BCFG Editor)
@ MSG_GUI_DESTROYED
GUI destroyed.
@ MSG_END_CALL
End of the call.
MOPI message header, the payload follows it.
Process group definition.