aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmo-bts/gsm_data_shared.h
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2019-09-27 15:55:45 +0200
committerpespin <pespin@sysmocom.de>2019-10-05 20:50:13 +0000
commit972c24314694396c9b66fd8175cdcd40f01bdd39 (patch)
tree89b9a353434133e96d83df7c0efab23bf8c42861 /include/osmo-bts/gsm_data_shared.h
parent41c7b052838aaf17cd96daa8d7478b434bf4ab2a (diff)
struct gsm_bts: Add model_priv pointer handing bts_model specific data
Currently there's bts-virtual specific fields in gsm_bts which is not used by other models and are always allocated. An alternative would be having a union with different structs inside, one per model, but since we already have the bts_model abstraction, in this case it makes more sense to use that abstraction instead of filling code with preprocessor ifdefs to guard against non-defined types, etc. Existing model specific data is moved there. This new infra will be user further in forthcoming commits. Related: OS#4215 Change-Id: Ib17a752cdbaa7d5eb8c5dfa0b197f80a4f38b38e
Diffstat (limited to 'include/osmo-bts/gsm_data_shared.h')
-rw-r--r--include/osmo-bts/gsm_data_shared.h14
1 files changed, 1 insertions, 13 deletions
diff --git a/include/osmo-bts/gsm_data_shared.h b/include/osmo-bts/gsm_data_shared.h
index cf7b7157..5d8bc76e 100644
--- a/include/osmo-bts/gsm_data_shared.h
+++ b/include/osmo-bts/gsm_data_shared.h
@@ -775,19 +775,7 @@ struct gsm_bts {
char *sock_path;
} pcu;
- struct {
- uint32_t last_fn;
- struct timeval tv_clock;
- struct osmo_timer_list fn_timer;
- } vbts;
-#ifdef ENABLE_OC2GBTS
- /* specific to Open Cellular 2G BTS */
- struct {
- uint8_t led_ctrl_mode; /* 0: control by BTS, 1: not control by BTS */
- struct llist_head ceased_alarm_list; /* ceased alarm list*/
- unsigned int rtp_drift_thres_ms; /* RTP timestamp drift detection threshold */
- } oc2g;
-#endif
+ void *model_priv; /* Allocated by bts_model, contains model specific data pointer */
};