diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2020-06-18 19:36:12 +0200 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2020-06-23 14:53:37 +0200 |
commit | 8090df2a813a3cf174afb8acb9aba92b65d275fb (patch) | |
tree | cee14c7b8e18b81ea7542c0133c7bd6aa2ee1631 /tests | |
parent | ceb80fc6b6edcc701a423d6bfe8601b08ff3a10d (diff) |
bts_model: Convert bts_model_trx_close() to return asynchronously
Some backends like osmo-bts-trx require exchanging messages like
POWEROFF to close the TRX, and hence need some time. Switch the function
to expect result asynchronously by calling a callback.
This will be used later to wait until all TRX are really powered off
before exiting the process.
Change-Id: I7d76b600fc06e1114b35bf0c2d08eff5bbd1b69a
Diffstat (limited to 'tests')
-rw-r--r-- | tests/stubs.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/stubs.c b/tests/stubs.c index 20ce5129..4663a447 100644 --- a/tests/stubs.c +++ b/tests/stubs.c @@ -1,4 +1,5 @@ #include <osmo-bts/bts.h> +#include <osmo-bts/bts_model.h> struct femtol1_hdl; struct bts_model_set_dyn_pdch_data; @@ -23,8 +24,8 @@ int bts_model_apply_oml(struct gsm_bts *bts, struct msgb *msg, int bts_model_trx_deact_rf(struct gsm_bts_trx *trx) { return 0; } -int bts_model_trx_close(struct gsm_bts_trx *trx) -{ return 0; } +void bts_model_trx_close(struct gsm_bts_trx *trx) +{ bts_model_trx_close_cb(trx, 0); } int bts_model_check_oml(struct gsm_bts *bts, uint8_t msg_type, struct tlv_parsed *old_attr, struct tlv_parsed *new_attr, void *obj) |