diff options
author | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2015-05-12 17:54:33 +0200 |
---|---|---|
committer | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2015-05-20 11:36:12 +0200 |
commit | 536708617505a017b6b263a32f592471913ec464 (patch) | |
tree | f28edb7214a6bfac7d9386b50ea456c6eb9898f5 /src/gprs_ms.h | |
parent | dfef28de887eba43747bca52584f8310450e243a (diff) |
ms: Add MS storage class
Currently the MS objects are contained in the TBF objects only. To
allow for an extended life time after the TBF objects have been freed
and to find them based on TLLI, a container for the MS objects is
needed.
This commit adds the container class and also adds the corresponding
m_list member to GprsMs. Further integration into the PCU code is not
yet done.
Ticket: #1674
Sponsored-by: On-Waves ehf
Diffstat (limited to 'src/gprs_ms.h')
-rw-r--r-- | src/gprs_ms.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gprs_ms.h b/src/gprs_ms.h index a59fc5be..3a8a2e17 100644 --- a/src/gprs_ms.h +++ b/src/gprs_ms.h @@ -24,6 +24,7 @@ struct gprs_rlcmac_tbf; struct gprs_rlcmac_dl_tbf; struct gprs_rlcmac_ul_tbf; +#include "cxx_linuxlist.h" #include <stdint.h> #include <stddef.h> @@ -64,6 +65,9 @@ public: void* operator new(size_t num); void operator delete(void* p); + LListHead<GprsMs>& list() {return this->m_list;} + const LListHead<GprsMs>& list() const {return this->m_list;} + protected: void update_status(); void ref(); @@ -76,4 +80,5 @@ private: uint32_t m_tlli; bool m_is_idle; int m_ref; + LListHead<GprsMs> m_list; }; |