From c57333e1581131a794a5dd1c1d30f97e73120dfe Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Mon, 21 Dec 2020 13:14:54 +0100 Subject: Add a bts_model->bts_init() and trx_init() call-back function This allows a given BTS model driver to initialize data structures specific cor this BTS instance (or a TRX for this BTS instance). Change-Id: Icbad9cdc12221c9ad997267d77e5414edcbac538 --- include/osmocom/bsc/bts.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include') diff --git a/include/osmocom/bsc/bts.h b/include/osmocom/bsc/bts.h index 7d070af2e..aef0e0384 100644 --- a/include/osmocom/bsc/bts.h +++ b/include/osmocom/bsc/bts.h @@ -178,7 +178,15 @@ struct gsm_bts_model { const char *name; bool started; + /* start the model itself */ int (*start)(struct gsm_network *net); + + /* initialize a single BTS for this model */ + int (*bts_init)(struct gsm_bts *bts); + + /* initialize a single TRX for this model */ + int (*trx_init)(struct gsm_bts_trx *trx); + int (*oml_rcvmsg)(struct msgb *msg); char * (*oml_status)(const struct gsm_bts *bts); -- cgit v1.2.3