aboutsummaryrefslogtreecommitdiffstats
path: root/include/openbsc
diff options
context:
space:
mode:
authorHolger Freyther <zecke@selfish.org>2009-02-17 20:31:30 +0000
committerHolger Freyther <zecke@selfish.org>2009-02-17 20:31:30 +0000
commit76c95690215d3f577fb9dac6d85c64df4071f977 (patch)
treec87af3f80b89fb1583238efc284e2faac8921f0a /include/openbsc
parent9e783318b0da05295665b8a449a80e7a44df882c (diff)
[utils] Create gsm_utils for 7bit encoding and decoding...
Diffstat (limited to 'include/openbsc')
-rw-r--r--include/openbsc/Makefile.am3
-rw-r--r--include/openbsc/gsm_utils.h32
2 files changed, 34 insertions, 1 deletions
diff --git a/include/openbsc/Makefile.am b/include/openbsc/Makefile.am
index 062df346f..7c848b37b 100644
--- a/include/openbsc/Makefile.am
+++ b/include/openbsc/Makefile.am
@@ -1,4 +1,5 @@
noinst_HEADERS = abis_nm.h abis_rsl.h debug.h db.h gsm_04_08.h gsm_data.h \
gsm_subscriber.h linuxlist.h msgb.h select.h tlv.h gsm_04_11.h \
timer.h misdn.h chan_alloc.h telnet_interface.h paging.h \
- subchan_demux.h trau_frame.h e1_input.h trau_mux.h signal.h
+ subchan_demux.h trau_frame.h e1_input.h trau_mux.h signal.h \
+ gsm_utils.h
diff --git a/include/openbsc/gsm_utils.h b/include/openbsc/gsm_utils.h
new file mode 100644
index 000000000..8e4162e3c
--- /dev/null
+++ b/include/openbsc/gsm_utils.h
@@ -0,0 +1,32 @@
+/* GSM utility functions, e.g. coding and decoding */
+/*
+ * (C) 2008 by Daniel Willmann <daniel@totalueberwachung.de>
+ * (C) 2009 by Holger Hans Peter Freyther <zecke@selfish.org>
+ *
+ * All Rights Reserved
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ */
+
+#ifndef GSM_UTILS_H
+#define GSM_UTILS_H
+
+#include <sys/types.h>
+
+char *gsm_7bit_decode(u_int8_t *user_data, u_int8_t length);
+u_int8_t *gsm_7bit_encode(char *data);
+
+#endif