aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocom/bsc/gsm_data.h
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2017-12-18 18:44:25 +0100
committerHarald Welte <laforge@gnumonks.org>2017-12-23 00:23:08 +0100
commit148ee361b35cd942327049f7abf37aaad818fb70 (patch)
tree50f802cc5bf53ef625ce35ac2880a7fc12a5f3b2 /include/osmocom/bsc/gsm_data.h
parent9f7b1955d15c84e60cbc2c05cddc083993b140f3 (diff)
cosmetic: Hide all accesses to conn->bts behind conn_get_bts()
This is a new inline function that hides all accesses to conn->bts. A follow-up patch will then point this to conn->lchan->ts->trx->bts to get rid of the bts field. Change-Id: Ib6cf7097ced34eebe80441c29ab1534f21956a33
Diffstat (limited to 'include/osmocom/bsc/gsm_data.h')
-rw-r--r--include/osmocom/bsc/gsm_data.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/osmocom/bsc/gsm_data.h b/include/osmocom/bsc/gsm_data.h
index 3cc37945c..45fbcd21a 100644
--- a/include/osmocom/bsc/gsm_data.h
+++ b/include/osmocom/bsc/gsm_data.h
@@ -98,6 +98,10 @@ struct gsm_subscriber_connection {
struct gsm_classmark classmark;
};
+static inline struct gsm_bts *conn_get_bts(struct gsm_subscriber_connection *conn) {
+ return conn->bts;
+}
+
#include "gsm_data_shared.h"