aboutsummaryrefslogtreecommitdiffstats
path: root/src/libbsc/handover_vty.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libbsc/handover_vty.c')
-rw-r--r--src/libbsc/handover_vty.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/libbsc/handover_vty.c b/src/libbsc/handover_vty.c
index 225e9a909..3ebdc0fea 100644
--- a/src/libbsc/handover_vty.c
+++ b/src/libbsc/handover_vty.c
@@ -70,7 +70,7 @@ HO_CFG_ALL_MEMBERS
#undef HO_CFG_ONE_MEMBER
-void ho_vty_write(struct vty *vty, const char *indent, struct handover_cfg *ho)
+static void ho_vty_write(struct vty *vty, const char *indent, struct handover_cfg *ho)
{
#define HO_CFG_ONE_MEMBER(TYPE, NAME, DEFAULT_VAL, \
VTY_CMD, VTY_CMD_ARG, VTY_ARG_EVAL, \
@@ -84,6 +84,18 @@ void ho_vty_write(struct vty *vty, const char *indent, struct handover_cfg *ho)
#undef HO_CFG_ONE_MEMBER
}
+void ho_vty_write_bts(struct vty *vty, struct gsm_bts *bts)
+{
+ ho_vty_write(vty, " ", bts->ho);
+}
+
+void ho_vty_write_net(struct vty *vty, struct gsm_network *net)
+{
+ ho_vty_write(vty, " ", net->ho);
+
+ /* future: net specific vty commands */
+}
+
static void ho_vty_init_cmds(int parent_node)
{
#define HO_CFG_ONE_MEMBER(TYPE, NAME, DEFAULT_VAL, VTY1, VTY2, VTY3, VTY4, VTY5, VTY6) \