aboutsummaryrefslogtreecommitdiffstats
path: root/src/bts.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/bts.h')
-rw-r--r--src/bts.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/bts.h b/src/bts.h
index 541b9b20..c4e8d3de 100644
--- a/src/bts.h
+++ b/src/bts.h
@@ -56,6 +56,9 @@ struct gprs_rlcmac_pdch {
/* dispatching of messages */
int rcv_block(uint8_t *data, uint8_t len, uint32_t fn, int8_t rssi);
+
+ gprs_rlcmac_bts *bts_data() const;
+ BTS *bts() const;
#endif
uint8_t m_is_enabled; /* TS is enabled */
@@ -73,7 +76,7 @@ struct gprs_rlcmac_pdch {
#ifdef __cplusplus
private:
- int rcv_data_block_acknowledged(struct gprs_rlcmac_bts *bts,
+ int rcv_data_block_acknowledged(
uint8_t trx, uint8_t ts,
uint8_t *data, uint8_t len, int8_t rssi);
int rcv_control_block(struct gprs_rlcmac_bts *bts,
@@ -192,6 +195,16 @@ inline SBAController *BTS::sba()
{
return &m_sba;
}
+
+inline BTS *gprs_rlcmac_pdch::bts() const
+{
+ return trx->bts;
+}
+
+inline gprs_rlcmac_bts *gprs_rlcmac_pdch::bts_data() const
+{
+ return trx->bts->bts_data();
+}
#endif
#ifdef __cplusplus