From 55aea5099c1780700e5acebda712e47b575853e5 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Thu, 30 Sep 2010 18:30:41 +0800 Subject: gsm0480: Add USSD format functions to libosmocore These routines come from OpenBSC, the msgb_wrap_* functions belong to Mike Haben, the rest is mine. The msgb allocation is compatible to the GSM48 allocation in OpenBSC. --- include/osmocore/Makefile.am | 2 +- include/osmocore/gsm0480.h | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 include/osmocore/gsm0480.h (limited to 'include/osmocore') diff --git a/include/osmocore/Makefile.am b/include/osmocore/Makefile.am index c8b614f6..74102bdb 100644 --- a/include/osmocore/Makefile.am +++ b/include/osmocore/Makefile.am @@ -2,7 +2,7 @@ osmocore_HEADERS = signal.h linuxlist.h timer.h select.h msgb.h \ tlv.h bitvec.h comp128.h statistics.h gsm_utils.h utils.h \ gsmtap.h write_queue.h rsl.h gsm48.h rxlev_stat.h mncc.h \ gsm48_ie.h logging.h gsm0808.h rate_ctr.h gsmtap_util.h \ - plugin.h crc16.h panic.h process.h + plugin.h crc16.h panic.h process.h gsm0480.h if ENABLE_TALLOC osmocore_HEADERS += talloc.h diff --git a/include/osmocore/gsm0480.h b/include/osmocore/gsm0480.h new file mode 100644 index 00000000..52592f77 --- /dev/null +++ b/include/osmocore/gsm0480.h @@ -0,0 +1,12 @@ +#ifndef gsm0480_h +#define gsm0480_h + +#include "msgb.h" + +struct msgb *gsm0480_create_unstructuredSS_Notify(int alertPattern, const char *text); +struct msgb *gsm0480_create_notifySS(const char *text); + +int gsm0480_wrap_invoke(struct msgb *msg, int op, int link_id); +int gsm0480_wrap_facility(struct msgb *msg); + +#endif -- cgit v1.2.3