blob: d4b67e3ecd3b9d4ac967341737644b5ae90eac2e [file] [log] [blame]
Philipp Maierfbf66102017-04-09 12:32:51 +02001/* (C) 2017 by sysmocom s.f.m.c. GmbH
2 * All Rights Reserved
3 *
4 * Author: Philipp Maier
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU Affero General Public License as published by
8 * the Free Software Foundation; either version 3 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU Affero General Public License for more details.
15 *
16 * You should have received a copy of the GNU Affero General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 *
19 */
20
21#pragma once
22
Harald Welte54a10ef2018-02-09 00:09:16 +010023#include <osmocom/msc/a_iface.h>
24
Philipp Maierfbf66102017-04-09 12:32:51 +020025/* Note: The structs and functions presented in this header file are intended
26 * to be used only by a_iface.c. */
27
28/* A structure to hold tha most basic information about a sigtran connection
29 * we use this struct internally here to pass connection data around */
30struct a_conn_info {
Harald Welte54a10ef2018-02-09 00:09:16 +010031 struct bsc_context *bsc;
Philipp Maierfbf66102017-04-09 12:32:51 +020032 uint32_t conn_id;
33 struct gsm_network *network;
Philipp Maierfbf66102017-04-09 12:32:51 +020034};
35
36/* Receive incoming connection less data messages via sccp */
Neels Hofmeyrc1d69252017-12-18 04:06:04 +010037void a_sccp_rx_udt(struct osmo_sccp_user *scu, const struct a_conn_info *a_conn_info, struct msgb *msg);
Philipp Maierfbf66102017-04-09 12:32:51 +020038
39/* Receive incoming connection oriented data messages via sccp */
Neels Hofmeyrc1d69252017-12-18 04:06:04 +010040int a_sccp_rx_dt(struct osmo_sccp_user *scu, const struct a_conn_info *a_conn_info, struct msgb *msg);
Philipp Maierfbf66102017-04-09 12:32:51 +020041