From 536708617505a017b6b263a32f592471913ec464 Mon Sep 17 00:00:00 2001 From: Jacob Erlbeck Date: Tue, 12 May 2015 17:54:33 +0200 Subject: 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 --- src/gprs_ms.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/gprs_ms.h') 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 #include @@ -64,6 +65,9 @@ public: void* operator new(size_t num); void operator delete(void* p); + LListHead& list() {return this->m_list;} + const LListHead& 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 m_list; }; -- cgit v1.2.3