From 28a31ed7fe19875aa8d77611abe47c318d0b902f Mon Sep 17 00:00:00 2001 From: PaulK Date: Sun, 1 Jan 2012 19:33:24 +0100 Subject: Improved SMS stability (now it's stable), still no multi-message, plus bug fixes --- gen.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'gen.c') diff --git a/gen.c b/gen.c index 6140ec8..0a3d8d0 100644 --- a/gen.c +++ b/gen.c @@ -24,6 +24,10 @@ #include "samsung-ril.h" #include "util.h" +/** + * GEN global vars + */ + struct ipc_gen_phone_res_expect ipc_gen_phone_res_expects[0x20]; int ipc_gen_phone_res_id = 0; @@ -46,6 +50,15 @@ int ipc_gen_phone_res_id = 0; * aseq = ril_request_reg_id(reqGetToken(info->aseq)); */ +/** + * GEN expects functions + */ + +void ipc_gen_phone_res_expects_init(void) +{ + memset(ipc_gen_phone_res_expects, 0, sizeof(struct ipc_gen_phone_res_expect) * 0x20); +} + int ipc_gen_phone_res_id_new(void) { ipc_gen_phone_res_id++; @@ -107,6 +120,14 @@ void ipc_gen_phone_res_expect_to_abort(unsigned char aseq, unsigned short comman ipc_gen_phone_res_expects[id].to_abort = 1; } +/** + * GEN dequeue function + */ + +/** + * In: IPC_GEN_PHONE_RES + * Check the ipc_gen_phone_res_expects queue and act accordingly + */ void ipc_gen_phone_res(struct ipc_message_info *info) { struct ipc_gen_phone_res *phone_res = (struct ipc_gen_phone_res *) info->data; -- cgit v1.1