aboutsummaryrefslogtreecommitdiffstats
path: root/src/tbf.h
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2017-12-06 13:35:08 +0100
committerHarald Welte <laforge@gnumonks.org>2018-01-12 14:17:10 +0000
commit5081806f4d41ceccf5b5421c9644113ac41e2524 (patch)
treedad65e1e7c8163e91697864ccf2b7266de33fb97 /src/tbf.h
parentb3a17d6074b2575a599863766b9826a7bd3369b9 (diff)
Make TBF state private
Let's make sure no external function can mess with the TBF state. Change-Id: I217f4c4bac21dd584c8682928a080a1a6e9507e1
Diffstat (limited to 'src/tbf.h')
-rw-r--r--src/tbf.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/tbf.h b/src/tbf.h
index 9491f2a4..943ec928 100644
--- a/src/tbf.h
+++ b/src/tbf.h
@@ -284,10 +284,6 @@ struct gprs_rlcmac_tbf {
Meas();
} meas;
- /* 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;
-
/* Remember if the tbf was in wait_release state when we want to
* schedule a new dl assignment */
uint8_t was_releasing;
@@ -327,6 +323,7 @@ protected:
uint8_t m_ms_class;
private:
+ enum gprs_rlcmac_tbf_state state;
LListHead<gprs_rlcmac_tbf> m_list;
LListHead<gprs_rlcmac_tbf> m_ms_list;
bool m_egprs_enabled;