diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-09-30 18:30:41 +0800 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-09-30 19:00:58 +0800 |
commit | 55aea5099c1780700e5acebda712e47b575853e5 (patch) | |
tree | c6e2f199d32ccce10bc271174aaf73867439d714 /include/osmocore | |
parent | 47ee693170d589f760c4a9c7a5c4ad0b289aa65d (diff) |
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.
Diffstat (limited to 'include/osmocore')
-rw-r--r-- | include/osmocore/Makefile.am | 2 | ||||
-rw-r--r-- | include/osmocore/gsm0480.h | 12 |
2 files changed, 13 insertions, 1 deletions
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 |