blob: a09972e18a6da6a96f1e53200043c5846a9b3e42 [file] [log] [blame]
Philipp Maier39f62bb2017-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
Philipp Maier628a05e2018-08-07 11:31:51 +020023struct bsc_msc_data;
24
Philipp Maier39f62bb2017-04-09 12:32:51 +020025/* Create and start state machine which handles the reset/reset-ack procedure */
Philipp Maier628a05e2018-08-07 11:31:51 +020026void a_reset_alloc(struct bsc_msc_data *msc, const char *name, void *cb);
Philipp Maier39f62bb2017-04-09 12:32:51 +020027
28/* Confirm that we sucessfully received a reset acknowlege message */
Philipp Maier628a05e2018-08-07 11:31:51 +020029void a_reset_ack_confirm(struct bsc_msc_data *msc);
Philipp Maier39f62bb2017-04-09 12:32:51 +020030
31/* Report a failed connection */
Philipp Maier628a05e2018-08-07 11:31:51 +020032void a_reset_conn_fail(struct bsc_msc_data *msc);
Philipp Maier39f62bb2017-04-09 12:32:51 +020033
34/* Report a successful connection */
Philipp Maier628a05e2018-08-07 11:31:51 +020035void a_reset_conn_success(struct bsc_msc_data *msc);
Philipp Maier39f62bb2017-04-09 12:32:51 +020036
37/* Check if we have a connection to a specified msc */
Philipp Maier628a05e2018-08-07 11:31:51 +020038bool a_reset_conn_ready(struct bsc_msc_data *msc);