aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocore
diff options
context:
space:
mode:
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);