diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2013-10-27 20:31:47 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2013-10-30 21:24:13 +0100 |
commit | 34f6e5ebe63f46ccf4ce97899c66a83f6f39d355 (patch) | |
tree | 9845e5068beffa43e5e1a9f03ba799489d4746d4 /src/tbf.h | |
parent | 474685e26ec4574aa2fab782b93bc50c23104905 (diff) |
tbf: Make tfi private and update the code
All logging code that used tbf->tfi is now using tbf_name to
print the the TBF. External code is now using tfi() which is
inlined and should result in the same code being generated as
before (+debug code that can be stripped).
Diffstat (limited to 'src/tbf.h')
-rw-r--r-- | src/tbf.h | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -120,10 +120,11 @@ struct gprs_rlcmac_tbf { bool is_tlli_valid() const; void tlli_mark_valid(); + uint8_t tfi() const; + struct llist_head list; uint32_t state_flags; enum gprs_rlcmac_tbf_direction direction; - uint8_t tfi; struct gprs_rlcmac_trx *trx; uint8_t tsc; uint8_t first_ts; /* first TS used by TBF */ @@ -224,6 +225,7 @@ struct gprs_rlcmac_tbf { */ uint32_t m_tlli; uint8_t m_tlli_valid; + uint8_t m_tfi; protected: gprs_rlcmac_bts *bts_data() const; @@ -280,4 +282,9 @@ inline bool gprs_rlcmac_tbf::is_tlli_valid() const return m_tlli_valid; } +inline uint8_t gprs_rlcmac_tbf::tfi() const +{ + return m_tfi; +} + const char *tbf_name(gprs_rlcmac_tbf *tbf); |