path: root/src/tbf.h
diff options
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-10-19 21:24:34 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-10-30 21:24:10 +0100
commit9f0c1d216a0596f733c55d787ef0eb0693362d49 (patch)
tree179ad6966efd04628c60af899a80817ee63f7e74 /src/tbf.h
parentcedf89092849569a8bc5e89b83d89b421c7bbdfa (diff)
tbf: Keep a pointer from the tbf to the BTS
This is preparing the next commits and will ease working with the debug_diagram when the global lists are killed. It will simplify the APIin the long run.
Diffstat (limited to 'src/tbf.h')
1 files changed, 4 insertions, 1 deletions
diff --git a/src/tbf.h b/src/tbf.h
index 5715f25..f526d34 100644
--- a/src/tbf.h
+++ b/src/tbf.h
@@ -195,6 +195,9 @@ struct gprs_rlcmac_tbf {
/* these should become protected but only after gprs_rlcmac_data.c
* stops to iterate over all tbf in its current form */
enum gprs_rlcmac_tbf_state state;
+ /* store the BTS this TBF belongs to */
+ BTS *bts;
@@ -226,7 +229,7 @@ struct gprs_rlcmac_tbf *tbf_by_poll_fn(uint32_t fn, uint8_t trx, uint8_t ts);
void tbf_free(struct gprs_rlcmac_tbf *tbf);
-int tbf_update(struct gprs_rlcmac_bts *bts, struct gprs_rlcmac_tbf *tbf);
+int tbf_update(struct gprs_rlcmac_tbf *tbf);
int tbf_assign_control_ts(struct gprs_rlcmac_tbf *tbf);