aboutsummaryrefslogtreecommitdiffstats
path: root/include/openbsc/vty.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/openbsc/vty.h')
-rw-r--r--include/openbsc/vty.h46
1 files changed, 46 insertions, 0 deletions
diff --git a/include/openbsc/vty.h b/include/openbsc/vty.h
new file mode 100644
index 00000000..516c8c2a
--- /dev/null
+++ b/include/openbsc/vty.h
@@ -0,0 +1,46 @@
+#ifndef OPENBSC_VTY_H
+#define OPENBSC_VTY_H
+
+#include <osmocom/vty/vty.h>
+#include <osmocom/vty/buffer.h>
+#include <osmocom/vty/command.h>
+
+struct gsm_network;
+struct vty;
+
+void openbsc_vty_print_statistics(struct vty *vty, struct gsm_network *);
+
+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;
+extern struct cmd_element ournode_exit_cmd;
+extern struct cmd_element ournode_end_cmd;
+
+enum bsc_vty_node {
+ GSMNET_NODE = _LAST_OSMOVTY_NODE + 1,
+ BTS_NODE,
+ TRX_NODE,
+ TS_NODE,
+ SUBSCR_NODE,
+ MGCP_NODE,
+ GBPROXY_NODE,
+ SGSN_NODE,
+ NS_NODE,
+ BSSGP_NODE,
+ OML_NODE,
+ E1INP_NODE,
+ NAT_NODE,
+ NAT_BSC_NODE,
+ MSC_NODE,
+ OM2K_NODE,
+ TRUNK_NODE,
+};
+
+extern int bsc_vty_is_config_node(struct vty *vty, int node);
+extern void bsc_replace_string(void *ctx, char **dst, const char *newstr);
+
+int bsc_vty_init(void);
+int bsc_vty_init_extra(void);
+
+#endif