From e555c2b5453a9aea6fa03db4033eac1cee8d8ce4 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Fri, 17 Aug 2012 13:02:12 +0200 Subject: VTY: dynamically create BTS "type" command syntax --- openbsc/include/openbsc/gsm_data.h | 3 +++ openbsc/include/openbsc/gsm_data_shared.h | 1 + 2 files changed, 4 insertions(+) (limited to 'openbsc/include') diff --git a/openbsc/include/openbsc/gsm_data.h b/openbsc/include/openbsc/gsm_data.h index e2ba9b655..572f8f53b 100644 --- a/openbsc/include/openbsc/gsm_data.h +++ b/openbsc/include/openbsc/gsm_data.h @@ -365,4 +365,7 @@ struct gsm_bts_trx *gsm_bts_trx_by_nr(struct gsm_bts *bts, int nr); /* generic E1 line operations for all ISDN-based BTS. */ extern struct e1inp_line_ops bts_isdn_e1inp_line_ops; +extern const struct value_string bts_type_names[_NUM_GSM_BTS_TYPE+1]; +extern const struct value_string bts_type_descs[_NUM_GSM_BTS_TYPE+1]; + #endif /* _GSM_DATA_H */ diff --git a/openbsc/include/openbsc/gsm_data_shared.h b/openbsc/include/openbsc/gsm_data_shared.h index 3ba7a4bef..5d4c51626 100644 --- a/openbsc/include/openbsc/gsm_data_shared.h +++ b/openbsc/include/openbsc/gsm_data_shared.h @@ -363,6 +363,7 @@ enum gsm_bts_type { GSM_BTS_TYPE_HSL_FEMTO, GSM_BTS_TYPE_NOKIA_SITE, GSM_BTS_TYPE_OSMO_SYSMO, + _NUM_GSM_BTS_TYPE }; struct vty; -- cgit v1.2.3