aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2016-08-09 20:15:09 +0200
committerHarald Welte <laforge@gnumonks.org>2016-08-30 07:35:47 +0000
commit9faaf4ecf01322189808901398e06d7e4f14560d (patch)
treec16f8b3e4cdc6f6779340fd4cf9e73393f9bdf4e /include
parent3b2e5de3aea8652969e7bbd1e3c04206dce51330 (diff)
cosmetic: common ts_is_pdch()
Have one common ts_is_pdch(), placed in lchan.c, since this file is pretty empty and pretty close to ts. Publish in gsm_data.h. Remove the if-style implementation from l1sap.c, and instead implement in a switch statement. This prepares for upcoming ts_is_pdch() usage in ph_data_req() for sysmo and lc15. Change-Id: Ib78d663fdbac5a1d7053f1b9d543649b66da00e2
Diffstat (limited to 'include')
-rw-r--r--include/osmo-bts/gsm_data.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/osmo-bts/gsm_data.h b/include/osmo-bts/gsm_data.h
index c75f8284..f1c96012 100644
--- a/include/osmo-bts/gsm_data.h
+++ b/include/osmo-bts/gsm_data.h
@@ -135,5 +135,6 @@ int conf_lchans_as_pchan(struct gsm_bts_trx_ts *ts,
int bts_supports_cipher(struct gsm_bts_role_bts *bts, int rsl_cipher);
+bool ts_is_pdch(const struct gsm_bts_trx_ts *ts);
#endif /* _GSM_DATA_H */