diff options
author | Harald Welte <laforge@gnumonks.org> | 2017-12-18 18:44:25 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2017-12-23 00:23:08 +0100 |
commit | 148ee361b35cd942327049f7abf37aaad818fb70 (patch) | |
tree | 50f802cc5bf53ef625ce35ac2880a7fc12a5f3b2 /include/osmocom/bsc/gsm_data.h | |
parent | 9f7b1955d15c84e60cbc2c05cddc083993b140f3 (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.h | 4 |
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" |