vty: Provide a is_config_node for the VTY and use it for the bsc
Right now only bsc_hack and osmo_bsc need to have a custom
config handling as they use the subscr/oml nodes.
diff --git a/openbsc/src/bsc_hack.c b/openbsc/src/bsc_hack.c
index 4e8309b..61b7947 100644
--- a/openbsc/src/bsc_hack.c
+++ b/openbsc/src/bsc_hack.c
@@ -38,8 +38,7 @@
#include <osmocore/talloc.h>
#include <openbsc/signal.h>
#include <openbsc/osmo_msc.h>
-
-#include <osmocom/vty/command.h>
+#include <openbsc/vty.h>
#include "../bscconfig.h"
@@ -212,6 +211,7 @@
.name = "OpenBSC",
.version = PACKAGE_VERSION,
.go_parent_cb = bsc_vty_go_parent,
+ .is_config_node = bsc_vty_is_config_node,
};
int main(int argc, char **argv)