Philipp Maier | fbf6610 | 2017-04-09 12:32:51 +0200 | [diff] [blame] | 1 | /* (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 Maier | fbf6610 | 2017-04-09 12:32:51 +0200 | [diff] [blame] | 23 | /* Create and start state machine which handles the reset/reset-ack procedure */ |
Philipp Maier | f913e5f | 2018-05-07 10:15:49 +0200 | [diff] [blame] | 24 | struct osmo_fsm_inst *a_reset_alloc(void *ctx, const char *name, void *cb, |
| 25 | void *priv, bool already_connected); |
Philipp Maier | fbf6610 | 2017-04-09 12:32:51 +0200 | [diff] [blame] | 26 | |
| 27 | /* Confirm that we sucessfully received a reset acknowlege message */ |
Philipp Maier | f913e5f | 2018-05-07 10:15:49 +0200 | [diff] [blame] | 28 | void a_reset_ack_confirm(struct osmo_fsm_inst *reset_fsm); |
Philipp Maier | fbf6610 | 2017-04-09 12:32:51 +0200 | [diff] [blame] | 29 | |
| 30 | /* Check if we have a connection to a specified msc */ |
Philipp Maier | f913e5f | 2018-05-07 10:15:49 +0200 | [diff] [blame] | 31 | bool a_reset_conn_ready(struct osmo_fsm_inst *reset_fsm); |