|
SWILIB API (ELKA)
|
#include "base.h"Go to the source code of this file.
Data Structures | |
| struct | GBS_MSG |
| GBS Message. More... | |
| struct | MOPI_MSG |
| MOPI message header, the payload follows it. More... | |
| struct | GBSTMR |
| GBS Timer. More... | |
| struct | IPC_REQ |
| Message for MSG_IPC. More... | |
| struct | PGROUP |
| Process group definition. More... | |
Typedefs | |
| typedef struct GBS_MSG | GBS_MSG |
| typedef struct MOPI_MSG | MOPI_MSG |
| typedef struct GBSTMR | GBSTMR |
| typedef struct IPC_REQ | IPC_REQ |
| typedef struct PGROUP | PGROUP |
| typedef void(* | GBSTMR_CALLBACK) (GBSTMR *) |
| typedef void(* | GBS_PROC_CALLBACK) () |
Enumerations | |
| enum | GbsCepID { MMI_CEPID = 0x4209 , LCD_DISPLAYQUEUE_CEPID = 0x4200 , IDM_PROCESS_CEPID = 0x403D , HELPER_CEPID = 0x440A } |
| GBS CEP IDs. More... | |
| enum | GbsMsgID { MSG_INCOMMING_CALL = 0x6000 , MSG_STATE_OF_CALL = 0x6009 , MSG_END_CALL = 0x600B , MSG_HELPER_TRANSLATOR = 0xDEAE , MSG_RECONFIGURE_REQ = 0xDEAF , MSG_IPC = 0xDEB0 , MSG_SMS_TX = 0x5802 , MSG_SMS_RX = 0x5803 , MSG_USSD_RX = 0x60E2 , MSG_AUTOUSSD_RX = 0x60E5 , MSG_PLAYFILE_REPORT = 0x70BC , MSG_CSM_DESTROYED = 0x6400 , MSG_CSM_DESTROY_NOTIFY = 0x6402 , MSG_GUI_DESTROYED = 0x640E , MSG_IDLETMR_EXPIRED = 0x6401 } |
| Common GBS message IDs. More... | |
Functions | |
Timers | |
| int | GBS_GetCurCepid (void) |
| Get current CEPID. | |
| void | GBS_StartTimerProc (GBSTMR *timer, long ticks, GBSTMR_CALLBACK callback) |
| Start GBS timer with callback. | |
| 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. | |
| int | IsTimerProc (GBSTMR *timer) |
| Check if timer is not yet expired. | |
| void | GBS_StopTimer (GBSTMR *timer) |
| Stop active timer. | |
| void | GBS_DelTimer (GBSTMR *timer) |
| Delete timer. | |
Messages | |
| void | GBS_SendMessage (int cepid, int msg,...) |
| Send message to the GBS event processor. | |
| int | GBS_ReciveMessage (GBS_MSG *msg) |
| Receive GBS message inside GBS processor. | |
| int | GBS_RecActDstMessage (GBS_MSG *msg) |
| Receive a message from the queue without auto-ACK. | |
| void * | GBS_GetMsgPayload (GBS_MSG *msg) |
| Get the payload of a received GBS message. | |
| PGROUP * | GBS_GetProcGroup (int cepid) |
| Find a GBS process group. | |
| void * | MOPI_CreateMessage (MOPI_MSG **msg, int cepid_to, int msg_id, int size) |
| Create a MOPI message. | |
| void | MOPI_PostMessage (MOPI_MSG **msg) |
| Post a message created with MOPI_CreateMessage to its destination (sets the handle to NULL). | |
| void * | GBS_CreateMsg (void **msg, int cepid_to, int msg_id, int size) |
| Create a MOPI message. | |
| void | GBS_PostMsg (void **msg) |
| Post a message created with MOPI_CreateMessage to its destination (sets the handle to NULL). | |
| void | GBS_AcceptMessage (void) |
| ACK message received with GBS_RecActDstMessage. | |
| void | GBS_ClearMessage (void) |
| Clear the message queue of the current GBS process. | |
| void | GBS_PendMessage (const GBS_MSG *msg) |
| Pend the message for future processing. | |
| void | GBS_DestroyMessage (GBS_MSG *msg) |
| Destroy GSB_MSG object. | |
| int | GBS_WaitForMsg (const int *msg_list, int msgs_num, GBS_MSG *msgs, int timeout_ms) |
| Wait for the GBS messages. | |
Event processors | |
| void | CreateGBSproc (int cepid, const char *name, GBS_PROC_CALLBACK callback, int prio, int unk) |
| Create GBS Event Processor. | |
| void | KillGBSproc (int cepid) |
| Delete GBS Event Processor. | |
| void * | GetGBSProcAddress (short cepid) |
| Get address of the GBS event processor. | |
| void | CreateICL (PGROUP *pgroup) |
| Create new GBS Process Group. | |
| void * | GBS_CreateProcessGroupResource (int mask, int unk_zero, PGROUP *pgroup, int size) |
| Create new GBS Process Group Resource. | |
| void * | GBS_GetCurrentTask () |
| Get current GBS task. | |
| void * | MemMBPAlloc (void *pool, int size) |
| Alloc memory in the given memory pool. | |
| void | MemMBPFree (void *pool, void *ptr) |
| Free memory allocated with MemMBPAlloc. | |
| void * | RamMopiResourcePool () |
| Pointer to the MOPI memory pool. | |