2010-04-06 09:55:37 +00:00
|
|
|
#ifndef OPENBSC_VTY_H
|
|
|
|
#define OPENBSC_VTY_H
|
|
|
|
|
2010-05-19 17:45:32 +00:00
|
|
|
#include <osmocom/vty/vty.h>
|
|
|
|
#include <osmocom/vty/buffer.h>
|
2010-05-31 14:04:12 +00:00
|
|
|
#include <osmocom/vty/command.h>
|
2010-05-14 15:59:53 +00:00
|
|
|
|
2010-04-15 09:28:14 +00:00
|
|
|
struct gsm_network;
|
|
|
|
struct vty;
|
|
|
|
|
|
|
|
void openbsc_vty_print_statistics(struct vty *vty, struct gsm_network *);
|
2010-04-06 09:55:37 +00:00
|
|
|
|
2010-05-14 15:59:53 +00:00
|
|
|
struct buffer *vty_argv_to_buffer(int argc, const char *argv[], int base);
|
|
|
|
|
|
|
|
extern struct cmd_element cfg_description_cmd;
|
|
|
|
extern struct cmd_element cfg_no_description_cmd;
|
|
|
|
|
2010-05-31 14:04:12 +00:00
|
|
|
enum bsc_vty_node {
|
|
|
|
GSMNET_NODE = _LAST_OSMOVTY_NODE + 1,
|
|
|
|
BTS_NODE,
|
|
|
|
TRX_NODE,
|
|
|
|
TS_NODE,
|
|
|
|
SUBSCR_NODE,
|
|
|
|
MGCP_NODE,
|
|
|
|
GBPROXY_NODE,
|
|
|
|
SGSN_NODE,
|
|
|
|
OML_NODE,
|
2010-06-15 12:11:16 +00:00
|
|
|
NAT_NODE,
|
2010-06-17 06:42:20 +00:00
|
|
|
NAT_BSC_NODE,
|
2010-09-15 15:28:49 +00:00
|
|
|
MSC_NODE,
|
2011-02-12 13:42:59 +00:00
|
|
|
OM2K_NODE,
|
2016-11-11 18:41:59 +00:00
|
|
|
OM2K_CON_GROUP_NODE,
|
2011-02-28 11:11:02 +00:00
|
|
|
TRUNK_NODE,
|
2011-05-02 17:16:13 +00:00
|
|
|
PGROUP_NODE,
|
2011-09-01 16:18:43 +00:00
|
|
|
MNCC_INT_NODE,
|
2015-01-27 09:58:29 +00:00
|
|
|
NITB_NODE,
|
2011-06-04 18:22:49 +00:00
|
|
|
BSC_NODE,
|
2012-11-20 21:22:04 +00:00
|
|
|
SMPP_NODE,
|
|
|
|
SMPP_ESME_NODE,
|
2015-09-24 15:32:30 +00:00
|
|
|
GTPHUB_NODE,
|
2010-05-31 14:04:12 +00:00
|
|
|
};
|
|
|
|
|
2010-08-26 07:38:42 +00:00
|
|
|
extern int bsc_vty_is_config_node(struct vty *vty, int node);
|
|
|
|
|
2011-03-09 12:36:32 +00:00
|
|
|
struct log_info;
|
2017-01-12 18:35:11 +00:00
|
|
|
int bsc_vty_init(struct gsm_network *network);
|
2011-02-19 15:48:17 +00:00
|
|
|
int bsc_vty_init_extra(void);
|
|
|
|
|
2016-05-09 19:18:08 +00:00
|
|
|
struct gsm_network *gsmnet_from_vty(struct vty *vty);
|
|
|
|
|
2010-04-06 09:55:37 +00:00
|
|
|
#endif
|