Neels Hofmeyr | 7685a78 | 2017-01-30 23:30:26 +0100 | [diff] [blame] | 1 | /* OsmoHLR VTY implementation */ |
| 2 | |
| 3 | /* (C) 2016 sysmocom s.f.m.c. GmbH <info@sysmocom.de> |
| 4 | * All Rights Reserved |
| 5 | * |
| 6 | * Author: Neels Hofmeyr <nhofmeyr@sysmocom.de> |
| 7 | * |
| 8 | * This program is free software; you can redistribute it and/or modify |
| 9 | * it under the terms of the GNU Affero General Public License as published by |
| 10 | * the Free Software Foundation; either version 3 of the License, or |
| 11 | * (at your option) any later version. |
| 12 | * |
| 13 | * This program is distributed in the hope that it will be useful, |
| 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 16 | * GNU Affero General Public License for more details. |
| 17 | * |
| 18 | * You should have received a copy of the GNU Affero General Public License |
| 19 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 20 | * |
| 21 | */ |
| 22 | |
| 23 | #pragma once |
| 24 | |
| 25 | #include <osmocom/core/logging.h> |
| 26 | #include <osmocom/vty/vty.h> |
Pau Espin Pedrol | ce9bc40 | 2017-05-31 13:19:22 +0200 | [diff] [blame] | 27 | #include <osmocom/vty/command.h> |
Neels Hofmeyr | 2f75803 | 2019-11-20 00:37:07 +0100 | [diff] [blame] | 28 | #include <osmocom/hlr/hlr.h> |
Pau Espin Pedrol | ce9bc40 | 2017-05-31 13:19:22 +0200 | [diff] [blame] | 29 | |
| 30 | enum hlr_vty_node { |
| 31 | HLR_NODE = _LAST_OSMOVTY_NODE + 1, |
| 32 | GSUP_NODE, |
Harald Welte | 4956ae1 | 2018-06-15 22:04:28 +0200 | [diff] [blame] | 33 | EUSE_NODE, |
Neels Hofmeyr | a75d1c2 | 2019-11-20 03:35:37 +0100 | [diff] [blame] | 34 | MSLOOKUP_NODE, |
| 35 | MSLOOKUP_SERVER_NODE, |
| 36 | MSLOOKUP_SERVER_MSC_NODE, |
Neels Hofmeyr | 647c106 | 2019-11-20 03:35:37 +0100 | [diff] [blame] | 37 | MSLOOKUP_CLIENT_NODE, |
Pau Espin Pedrol | ce9bc40 | 2017-05-31 13:19:22 +0200 | [diff] [blame] | 38 | }; |
Neels Hofmeyr | 7685a78 | 2017-01-30 23:30:26 +0100 | [diff] [blame] | 39 | |
| 40 | int hlr_vty_is_config_node(struct vty *vty, int node); |
Pau Espin Pedrol | ce9bc40 | 2017-05-31 13:19:22 +0200 | [diff] [blame] | 41 | int hlr_vty_go_parent(struct vty *vty); |
Pau Espin Pedrol | e49391b | 2019-08-05 15:57:10 +0200 | [diff] [blame] | 42 | void hlr_vty_init(void); |
Neels Hofmeyr | a75d1c2 | 2019-11-20 03:35:37 +0100 | [diff] [blame] | 43 | void dgsm_vty_init(void); |