aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/mncc_upqueue.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2011-01-06 14:44:15 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2011-01-06 14:52:50 +0100
commit913bc032b9f1b18cdcf8f15bdb663879c415c762 (patch)
tree40c5dd55db481e76d36507c669d3ac6ab627e186 /openbsc/src/mncc_upqueue.c
parent59234a3eb28ef9c560518a18c956802a63589183 (diff)
mncc: Move the cc_tx_to_mncc code into the libbsc.a
The trau_mux likes to call cc_tx_to_mncc for each received frame from the E1 link. Using a signal for each audio frame is messy as well. The best thing I could think of is to put this into the BSC to deref the pointer. The other option would be to include the gsm_data.h in the mncc.h header and have the method as inline.
Diffstat (limited to 'openbsc/src/mncc_upqueue.c')
-rw-r--r--openbsc/src/mncc_upqueue.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/openbsc/src/mncc_upqueue.c b/openbsc/src/mncc_upqueue.c
new file mode 100644
index 000000000..126072b2c
--- /dev/null
+++ b/openbsc/src/mncc_upqueue.c
@@ -0,0 +1,27 @@
+/* mncc_upqueue.c - Pass msgb's up the chain */
+
+/* (C) 2010 by Harald Welte <laforge@gnumonks.org>
+ * All Rights Reserved
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as published by
+ * the Free Software Foundation; either version 3 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 Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+#include <openbsc/mncc.h>
+#include <openbsc/gsm_data.h>
+
+void cc_tx_to_mncc(struct gsm_network *net, struct msgb *msg)
+{
+ net->mncc_recv(net, msg);
+}