aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/include
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2016-05-12 01:16:58 +0200
committerHarald Welte <laforge@gnumonks.org>2016-12-02 12:09:16 +0000
commit06d39fdb72f286ddb065f945c20d1528faf31e5a (patch)
treed31a9969d86cb9094eae6290f7e1d4b6bcfc0150 /openbsc/include
parentb90eabfb46aaf5efcc3b5f16fe89b914db4542ea (diff)
move to libcommon-cs: network VTY that isn't BSC-specific
Keep only BSC specific bits of the 'network' VTY node in bsc_vty.c, move more general VTY commands to common_cs_vty.c. Add arg to common_cs_vty_init() to pass a config_write_net() function. Pass a libbsc specific config_write_net() function. Future: upcoming omso-cscn will re-use the VTY bits moved to libcommon-cs and pass a different config_write_net() function. Change-Id: I871b7b32a0c56fdce983e409cf244ec487d24e71
Diffstat (limited to 'openbsc/include')
-rw-r--r--openbsc/include/openbsc/common_cs.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/openbsc/include/openbsc/common_cs.h b/openbsc/include/openbsc/common_cs.h
index caecfebf6..6dc956f80 100644
--- a/openbsc/include/openbsc/common_cs.h
+++ b/openbsc/include/openbsc/common_cs.h
@@ -22,5 +22,6 @@ struct gsm_network *gsm_network_init(void *ctx,
uint16_t network_code,
mncc_recv_cb_t mncc_recv);
-int common_cs_vty_init(struct gsm_network *network);
+int common_cs_vty_init(struct gsm_network *network,
+ int (* config_write_net )(struct vty *));
struct gsm_network *gsmnet_from_vty(struct vty *v);