aboutsummaryrefslogtreecommitdiffstats
path: root/src/tbf.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tbf.cpp')
-rw-r--r--src/tbf.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/tbf.cpp b/src/tbf.cpp
index 97696cb..48d89b9 100644
--- a/src/tbf.cpp
+++ b/src/tbf.cpp
@@ -189,6 +189,13 @@ const gprs_llc_queue *gprs_rlcmac_tbf::llc_queue() const
return m_ms ? m_ms->llc_queue() : NULL;
}
+int gprs_rlcmac_tbf::llc_queue_size() const
+{
+ /* m_ms->llc_queue() never returns NULL: GprsMs::m_llc_queue is a
+ * member instance. */
+ return m_ms ? m_ms->llc_queue()->size() : 0;
+}
+
void gprs_rlcmac_tbf::set_ms(GprsMs *ms)
{
if (m_ms == ms)