summaryrefslogtreecommitdiffstats
path: root/gen.c
diff options
context:
space:
mode:
authorPaulK <contact@paulk.fr>2012-01-01 19:33:24 +0100
committerPaulK <contact@paulk.fr>2012-01-01 19:33:24 +0100
commit28a31ed7fe19875aa8d77611abe47c318d0b902f (patch)
tree75e960dbcd3ebb8f00596059459d74908ce1a114 /gen.c
parent852feed67ca215589a223f6a51a64673b21af35f (diff)
downloadhardware_replicant_libsamsung-ril-28a31ed7fe19875aa8d77611abe47c318d0b902f.tar.gz
hardware_replicant_libsamsung-ril-28a31ed7fe19875aa8d77611abe47c318d0b902f.tar.bz2
hardware_replicant_libsamsung-ril-28a31ed7fe19875aa8d77611abe47c318d0b902f.zip
Improved SMS stability (now it's stable), still no multi-message, plus bug fixes
Diffstat (limited to 'gen.c')
-rw-r--r--gen.c21
1 files changed, 21 insertions, 0 deletions
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;