blob: c026d9174e6a1c8b3d6c8d51d8f3af7ea77b02c1 [file] [log] [blame]
Neels Hofmeyr7685a782017-01-30 23:30:26 +01001/* 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 Pedrolce9bc402017-05-31 13:19:22 +020027#include <osmocom/vty/command.h>
Neels Hofmeyr2f758032019-11-20 00:37:07 +010028#include <osmocom/hlr/hlr.h>
Pau Espin Pedrolce9bc402017-05-31 13:19:22 +020029
30enum hlr_vty_node {
31 HLR_NODE = _LAST_OSMOVTY_NODE + 1,
32 GSUP_NODE,
Harald Welte4956ae12018-06-15 22:04:28 +020033 EUSE_NODE,
Neels Hofmeyr3ad481a2019-11-20 03:35:37 +010034 MSLOOKUP_NODE,
35 MSLOOKUP_SERVER_NODE,
36 MSLOOKUP_SERVER_MSC_NODE,
Neels Hofmeyr62d916f2019-11-20 03:35:37 +010037 MSLOOKUP_CLIENT_NODE,
Pau Espin Pedrolce9bc402017-05-31 13:19:22 +020038};
Neels Hofmeyr7685a782017-01-30 23:30:26 +010039
40int hlr_vty_is_config_node(struct vty *vty, int node);
Pau Espin Pedrolce9bc402017-05-31 13:19:22 +020041int hlr_vty_go_parent(struct vty *vty);
Pau Espin Pedrole49391b2019-08-05 15:57:10 +020042void hlr_vty_init(void);
Neels Hofmeyr3ad481a2019-11-20 03:35:37 +010043void dgsm_vty_init(void);