aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2020-12-21 13:14:54 +0100
committerlaforge <laforge@osmocom.org>2020-12-29 17:30:52 +0000
commitc57333e1581131a794a5dd1c1d30f97e73120dfe (patch)
tree38f3c70f835d6c0f04dd872b258c38b9bf79b6e1 /include
parentade9435fa189f164bdb6190a8dd1a40b5420b761 (diff)
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
Diffstat (limited to 'include')
-rw-r--r--include/osmocom/bsc/bts.h8
1 files changed, 8 insertions, 0 deletions
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);