summaryrefslogtreecommitdiffstats
path: root/include/osmocore
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-10-09 01:47:15 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-10-09 01:49:11 +0800
commit00cb5700e65ef8bf4e86bdb0b45084265d73e5d9 (patch)
tree0146273e0d9263c082c764b8fb5d3c34e7480a42 /include/osmocore
parentc87f26652258ea7133efe57d1e8c8fc2f21c0efd (diff)
gsm0480: Move the USSD parsing code to libosmocore
- Change u_int8 to uint8 - Change DEBUGP to LOGP - Change fprintf(stderr, to LOGP(0, LOGL_DEBUG - We should define log areas used inside libosmocore
Diffstat (limited to 'include/osmocore')
-rw-r--r--include/osmocore/gsm0480.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/osmocore/gsm0480.h b/include/osmocore/gsm0480.h
index 52592f77..ae92c1f9 100644
--- a/include/osmocore/gsm0480.h
+++ b/include/osmocore/gsm0480.h
@@ -3,6 +3,17 @@
#include "msgb.h"
+#define MAX_LEN_USSD_STRING 31
+
+struct ussd_request {
+ char text[MAX_LEN_USSD_STRING + 1];
+ uint8_t transaction_id;
+ uint8_t invoke_id;
+};
+
+int gsm0480_decode_ussd_request(const struct msgb *msg,
+ struct ussd_request *request);
+
struct msgb *gsm0480_create_unstructuredSS_Notify(int alertPattern, const char *text);
struct msgb *gsm0480_create_notifySS(const char *text);