diff options
author | Harald Welte <laforge@gnumonks.org> | 2012-08-17 13:02:12 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2012-08-17 13:02:12 +0200 |
commit | e555c2b5453a9aea6fa03db4033eac1cee8d8ce4 (patch) | |
tree | b0ed476783f16edfd3e0e2d893a54f1ec6262c9c /openbsc/include | |
parent | 57e0724ed401bc8873d45defce84c733f45973ee (diff) |
VTY: dynamically create BTS "type" command syntax
Diffstat (limited to 'openbsc/include')
-rw-r--r-- | openbsc/include/openbsc/gsm_data.h | 3 | ||||
-rw-r--r-- | openbsc/include/openbsc/gsm_data_shared.h | 1 |
2 files changed, 4 insertions, 0 deletions
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; |