summaryrefslogtreecommitdiff
path: root/include/gsmd
diff options
context:
space:
mode:
authortick <tick@99fdad57-331a-0410-800a-d7fa5415bdb3>2007-10-25 11:53:03 +0000
committertick <tick@99fdad57-331a-0410-800a-d7fa5415bdb3>2007-10-25 11:53:03 +0000
commitbd3f1498ccd05a9aac192f84bf3f40189ff3a0d6 (patch)
tree3eef8200b89bab0faa61b58857290d8cfd7c0919 /include/gsmd
parentb8b0521b4e9e021600411182f0b0b9a4e7f7c284 (diff)
handle CME and CMS errors (Erin Yueh)
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3267 99fdad57-331a-0410-800a-d7fa5415bdb3
Diffstat (limited to 'include/gsmd')
-rw-r--r--include/gsmd/event.h1
-rw-r--r--include/gsmd/usock.h11
2 files changed, 10 insertions, 2 deletions
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 <gsmd/event.h>
-
+#include <gsmd/ts0707.h>
+#include <gsmd/ts0705.h>
#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 */
personal git repositories of Harald Welte. Your mileage may vary