aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmo-bts/vty.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/osmo-bts/vty.h')
-rw-r--r--include/osmo-bts/vty.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/include/osmo-bts/vty.h b/include/osmo-bts/vty.h
new file mode 100644
index 00000000..f0b7ea4b
--- /dev/null
+++ b/include/osmo-bts/vty.h
@@ -0,0 +1,22 @@
+#ifndef OSMOBTS_VTY_H
+#define OSMOBTS_VTY_H
+
+#include <osmocom/vty/vty.h>
+#include <osmocom/vty/command.h>
+
+enum bts_vty_node {
+ BTS_NODE = _LAST_OSMOVTY_NODE + 1,
+ TRX_NODE,
+ TS_NODE,
+ LCHAN_NODE,
+};
+
+extern struct cmd_element ournode_exit_cmd;
+extern struct cmd_element ournode_end_cmd;
+
+enum node_type bts_vty_go_parent(struct vty *vty);
+int bts_vty_is_config_node(struct vty *vty, int node);
+
+extern struct vty_app_info bts_vty_info;
+
+#endif