From bd3f1498ccd05a9aac192f84bf3f40189ff3a0d6 Mon Sep 17 00:00:00 2001 From: tick Date: Thu, 25 Oct 2007 11:53:03 +0000 Subject: handle CME and CMS errors (Erin Yueh) git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3267 99fdad57-331a-0410-800a-d7fa5415bdb3 --- include/gsmd/event.h | 1 + include/gsmd/usock.h | 11 +++++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/gsmd/event.h b/include/gsmd/event.h index 829b0fa..c8221b3 100644 --- a/include/gsmd/event.h +++ b/include/gsmd/event.h @@ -18,6 +18,7 @@ enum gsmd_events { GSMD_EVT_CIPHER = 13, /* Chiphering Information */ GSMD_EVT_IN_CBM = 14, /* Incoming Cell Broadcat message */ GSMD_EVT_IN_DS = 15, /* SMS Status Report */ + GSMD_EVT_IN_ERROR = 16, /* CME/CMS error */ __NUM_GSMD_EVT }; diff --git a/include/gsmd/usock.h b/include/gsmd/usock.h index f37cfa8..b9ecfc6 100644 --- a/include/gsmd/usock.h +++ b/include/gsmd/usock.h @@ -2,7 +2,8 @@ #define _GSMD_USOCK_H #include - +#include +#include #define GSMD_UNIX_SOCKET "\0gsmd" //#define GSMD_UNIX_SOCKET_TYPE SOCK_SEQPACKET #define GSMD_UNIX_SOCKET_TYPE SOCK_STREAM @@ -361,8 +362,14 @@ struct gsmd_evt_auxdata { u_int16_t net_state_gsm; u_int16_t net_state_gprs; } cipher; + struct { + enum gsm0707_cme_error number; + } cme_err; + struct { + enum gsm0705_cms_error number; + } cms_err; } u; - u_int8_t data[0]; + u_int8_t data[0]; } __attribute__ ((packed)); /* Refer to GSM 07.05 subclause 3.5.4 */ -- cgit v1.2.3