aboutsummaryrefslogtreecommitdiffstats
path: root/src/bts.h
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-10-17 19:59:56 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-10-30 21:20:45 +0100
commit9b30c7f46e2c55aed06cea8d1daa9093f331fb20 (patch)
tree53af4df3d3209ca34b2747a5ee8ef6b4e75041c8 /src/bts.h
parentb6acfdaa24851e1aa95bfc4611709737aaafa5f1 (diff)
bts: Move the frame_number into the BTS sructure
The current_frame is an attribute of the BTS. Move it from the pcu_l1_if.cpp into the BTS. As the next step we can trigger actions depending on the change of the frame.
Diffstat (limited to 'src/bts.h')
-rw-r--r--src/bts.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/bts.h b/src/bts.h
index 9a5b570a..507c79fb 100644
--- a/src/bts.h
+++ b/src/bts.h
@@ -106,9 +106,19 @@ public:
struct gprs_rlcmac_bts *bts_data();
+ /** TODO: change the number to unsigned */
+ void set_current_frame_number(int frame_number);
+ int current_frame_number() const;
+
private:
+ int m_cur_fn;
struct gprs_rlcmac_bts m_bts;
};
+
+inline int BTS::current_frame_number() const
+{
+ return m_cur_fn;
+}
#endif
#ifdef __cplusplus