aboutsummaryrefslogtreecommitdiffstats
path: root/src/gprs_ms.h
diff options
context:
space:
mode:
authorJacob Erlbeck <jerlbeck@sysmocom.de>2015-06-02 14:06:12 +0200
committerJacob Erlbeck <jerlbeck@sysmocom.de>2015-06-08 09:39:07 +0200
commit17214bb06de4a1d8b626dab0f695017b0c74b358 (patch)
treebafc8bfd8401df8001f9db1104c4997856cf16ac /src/gprs_ms.h
parentbefc760f8677d794e5a0dbc1f02f8ac85b649aa0 (diff)
ms: Add back pointer to BTS
Since more functionality will be moved to the GprsMs class, a pointer to the current BTS object is added to allow access to configuration data and other methods. Sponsored-by: On-Waves ehf
Diffstat (limited to 'src/gprs_ms.h')
-rw-r--r--src/gprs_ms.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gprs_ms.h b/src/gprs_ms.h
index 8d292f1e..7c71bd14 100644
--- a/src/gprs_ms.h
+++ b/src/gprs_ms.h
@@ -34,6 +34,8 @@ extern "C" {
#include <stdint.h>
#include <stddef.h>
+struct BTS;
+
class GprsMs {
public:
struct Callback {
@@ -50,7 +52,7 @@ public:
GprsMs * const m_ms;
};
- GprsMs(uint32_t tlli);
+ GprsMs(BTS *bts, uint32_t tlli);
~GprsMs();
void set_callback(Callback *cb) {m_cb = cb;}
@@ -100,6 +102,7 @@ protected:
void stop_timer();
private:
+ BTS *m_bts;
Callback * m_cb;
gprs_rlcmac_ul_tbf *m_ul_tbf;
gprs_rlcmac_dl_tbf *m_dl_tbf;