diff options
author | Harald Welte <laforge@gnumonks.org> | 2009-03-10 12:15:10 +0000 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2009-03-10 12:15:10 +0000 |
commit | 32201c1aea68f1d89371bb8c6a8e3c0d7dba019e (patch) | |
tree | ccaa486b6f5e2136eadbd3065c28396580ef5973 /include/openbsc | |
parent | a27d8d2a91612683373b7619d54a027e552c92d5 (diff) |
move is_ipaccess_bts() and parse_btstype9) to gsm_data.c
Diffstat (limited to 'include/openbsc')
-rw-r--r-- | include/openbsc/gsm_data.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/openbsc/gsm_data.h b/include/openbsc/gsm_data.h index b4ea22708..84d33d2c4 100644 --- a/include/openbsc/gsm_data.h +++ b/include/openbsc/gsm_data.h @@ -333,4 +333,19 @@ enum gsm_e1_event { void set_ts_e1link(struct gsm_bts_trx_ts *ts, u_int8_t e1_nr, u_int8_t e1_ts, u_int8_t e1_ts_ss); +enum gsm_bts_type parse_btstype(char *arg); +char *btstype2str(enum gsm_bts_type type); + +static inline int is_ipaccess_bts(struct gsm_bts *bts) +{ + switch (bts->type) { + case GSM_BTS_TYPE_NANOBTS_900: + case GSM_BTS_TYPE_NANOBTS_1800: + return 1; + default: + break; + } + return 0; +} + #endif |