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-14 16:59:17 +00:00
|
|
|
extern struct cmd_element ournode_exit_cmd;
|
2010-05-14 17:11:04 +00:00
|
|
|
extern struct cmd_element ournode_end_cmd;
|
2010-05-14 15:59:53 +00:00
|
|
|
|
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,
|
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,
|
2011-06-04 18:22:49 +00:00
|
|
|
BSC_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);
|
2010-10-12 21:21:54 +00:00
|
|
|
extern void bsc_replace_string(void *ctx, char **dst, const char *newstr);
|
2010-08-26 07:38:42 +00:00
|
|
|
|
2011-03-09 12:36:32 +00:00
|
|
|
struct log_info;
|
|
|
|
int bsc_vty_init(const struct log_info *cat);
|
2011-02-19 15:48:17 +00:00
|
|
|
int bsc_vty_init_extra(void);
|
|
|
|
|
2010-04-06 09:55:37 +00:00
|
|
|
#endif
|