From 06d39fdb72f286ddb065f945c20d1528faf31e5a Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Thu, 12 May 2016 01:16:58 +0200 Subject: 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 --- openbsc/include/openbsc/common_cs.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'openbsc/include/openbsc/common_cs.h') 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); -- cgit v1.2.3