Holger Hans Peter Freyther | 3c71232 | 2010-04-06 11:55:37 +0200 | [diff] [blame] | 1 | #ifndef OPENBSC_VTY_H |
| 2 | #define OPENBSC_VTY_H |
| 3 | |
Harald Welte | 4b037e4 | 2010-05-19 19:45:32 +0200 | [diff] [blame] | 4 | #include <osmocom/vty/vty.h> |
| 5 | #include <osmocom/vty/buffer.h> |
Harald Welte | 14ce8a0 | 2010-05-31 16:04:12 +0200 | [diff] [blame] | 6 | #include <osmocom/vty/command.h> |
Harald Welte | 197dea9 | 2010-05-14 17:59:53 +0200 | [diff] [blame] | 7 | |
Holger Hans Peter Freyther | e0ec326 | 2010-04-15 11:28:14 +0200 | [diff] [blame] | 8 | struct gsm_network; |
| 9 | struct vty; |
| 10 | |
Holger Hans Peter Freyther | e0ec326 | 2010-04-15 11:28:14 +0200 | [diff] [blame] | 11 | void openbsc_vty_print_statistics(struct vty *vty, struct gsm_network *); |
Holger Hans Peter Freyther | 3c71232 | 2010-04-06 11:55:37 +0200 | [diff] [blame] | 12 | |
Harald Welte | 197dea9 | 2010-05-14 17:59:53 +0200 | [diff] [blame] | 13 | struct buffer *vty_argv_to_buffer(int argc, const char *argv[], int base); |
| 14 | |
| 15 | extern struct cmd_element cfg_description_cmd; |
| 16 | extern struct cmd_element cfg_no_description_cmd; |
| 17 | |
Harald Welte | 14ce8a0 | 2010-05-31 16:04:12 +0200 | [diff] [blame] | 18 | enum bsc_vty_node { |
| 19 | GSMNET_NODE = _LAST_OSMOVTY_NODE + 1, |
| 20 | BTS_NODE, |
| 21 | TRX_NODE, |
| 22 | TS_NODE, |
| 23 | SUBSCR_NODE, |
| 24 | MGCP_NODE, |
| 25 | GBPROXY_NODE, |
| 26 | SGSN_NODE, |
Harald Welte | 14ce8a0 | 2010-05-31 16:04:12 +0200 | [diff] [blame] | 27 | OML_NODE, |
Holger Hans Peter Freyther | ab52c84 | 2010-06-15 20:11:16 +0800 | [diff] [blame] | 28 | NAT_NODE, |
Holger Hans Peter Freyther | 7b4a53d | 2010-06-17 14:42:20 +0800 | [diff] [blame] | 29 | NAT_BSC_NODE, |
Holger Hans Peter Freyther | 47b2601 | 2010-09-15 23:28:49 +0800 | [diff] [blame] | 30 | MSC_NODE, |
Harald Welte | e1d5eca | 2011-02-12 14:42:59 +0100 | [diff] [blame] | 31 | OM2K_NODE, |
Harald Welte | eae6829 | 2016-11-11 19:41:59 +0100 | [diff] [blame] | 32 | OM2K_CON_GROUP_NODE, |
Holger Hans Peter Freyther | 0e939fe | 2011-02-28 12:11:02 +0100 | [diff] [blame] | 33 | TRUNK_NODE, |
Holger Hans Peter Freyther | 6860c44 | 2011-05-02 19:16:13 +0200 | [diff] [blame] | 34 | PGROUP_NODE, |
Harald Welte | ab386e6 | 2011-09-01 18:18:43 +0200 | [diff] [blame] | 35 | MNCC_INT_NODE, |
Holger Hans Peter Freyther | 925c57f | 2015-01-27 10:58:29 +0100 | [diff] [blame] | 36 | NITB_NODE, |
Holger Hans Peter Freyther | 8b902d7 | 2011-06-04 20:22:49 +0200 | [diff] [blame] | 37 | BSC_NODE, |
Harald Welte | 338e3b3 | 2012-11-20 22:22:04 +0100 | [diff] [blame] | 38 | SMPP_NODE, |
| 39 | SMPP_ESME_NODE, |
Neels Hofmeyr | c8a614d | 2015-09-24 17:32:30 +0200 | [diff] [blame] | 40 | GTPHUB_NODE, |
Harald Welte | 9066b74 | 2016-06-19 18:06:02 +0200 | [diff] [blame^] | 41 | HLR_NODE, |
Harald Welte | 14ce8a0 | 2010-05-31 16:04:12 +0200 | [diff] [blame] | 42 | }; |
| 43 | |
Holger Hans Peter Freyther | 7a2c86b | 2010-08-26 15:38:42 +0800 | [diff] [blame] | 44 | extern int bsc_vty_is_config_node(struct vty *vty, int node); |
| 45 | |
Pablo Neira Ayuso | 739a566 | 2011-03-09 13:36:32 +0100 | [diff] [blame] | 46 | struct log_info; |
Max | db0e380 | 2017-01-12 19:35:11 +0100 | [diff] [blame] | 47 | int bsc_vty_init(struct gsm_network *network); |
Harald Welte | 4d54d0b | 2011-02-19 16:48:17 +0100 | [diff] [blame] | 48 | int bsc_vty_init_extra(void); |
| 49 | |
Neels Hofmeyr | 663debc | 2016-05-09 21:18:08 +0200 | [diff] [blame] | 50 | struct gsm_network *gsmnet_from_vty(struct vty *vty); |
| 51 | |
Holger Hans Peter Freyther | 3c71232 | 2010-04-06 11:55:37 +0200 | [diff] [blame] | 52 | #endif |