From 6a2d8985bfd6d9c6e6c0f541aca0e1590a753709 Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Fri, 12 Feb 2016 11:57:20 +0100 Subject: cscn: rename msc_api --- openbsc/src/libmsc/msc_ifaces.c | 50 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 openbsc/src/libmsc/msc_ifaces.c (limited to 'openbsc/src/libmsc/msc_ifaces.c') diff --git a/openbsc/src/libmsc/msc_ifaces.c b/openbsc/src/libmsc/msc_ifaces.c new file mode 100644 index 000000000..f50ab3275 --- /dev/null +++ b/openbsc/src/libmsc/msc_ifaces.c @@ -0,0 +1,50 @@ +/* MSC decisions which interface to send messages out on. */ + +/* (C) 2016 by sysmocom s.m.f.c GmbH + * + * 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 . + * + */ + +#include + +#include +#include +#include + +#include "msc_api.h" + +int msc_submit_dtap(struct gsm_subscriber_connection *conn, struct msgb *msg) +{ + switch (conn->via_iface) { + case IFACE_A: + //return gsm0808_submit_dtap(conn, msg, link_id, allow_sacch); + LOGP(DMSC, LOGL_ERROR, + "submit dtap: A-interface not implemented\n"); + return -1; + + case IFACE_IUCS: + return iucs_submit_dtap(conn, msg); + + default: + LOGP(DMSC, LOGL_ERROR, + "submit dtap: conn->via_iface invalid (%d)\n", + conn->via_iface); + return -1; + } +} + + -- cgit v1.2.3