From 871e0bec7e5218defc404b117dd6f89906c5c0da Mon Sep 17 00:00:00 2001 From: Max Date: Tue, 24 Jan 2017 16:27:06 +0100 Subject: OML: internalize failure reporting * make oml_tx_failure_event_rep() static and use osmo_signal_dispatch() wrapped into oml_fail_rep() to trigger event reports outside of oml.c instead of directly calling into OML layer * remove unnecessary formatting from text messages Related: OS#1615 Change-Id: I738555c547926e97b325ab53763c0076c42309bc --- include/osmo-bts/oml.h | 5 ++--- include/osmo-bts/signal.h | 1 + 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/osmo-bts/oml.h b/include/osmo-bts/oml.h index 217ec64c..139464ec 100644 --- a/include/osmo-bts/oml.h +++ b/include/osmo-bts/oml.h @@ -9,7 +9,7 @@ struct msgb; struct gsm_lchan; -int oml_init(void); +int oml_init(struct gsm_abis_mo *mo); int down_oml(struct gsm_bts *bts, struct msgb *msg); struct msgb *oml_msgb_alloc(void); @@ -45,7 +45,6 @@ int oml_set_lchan_t200(struct gsm_lchan *lchan); extern const unsigned int oml_default_t200_ms[7]; /* Transmit failure event report */ -int oml_tx_failure_event_rep(struct gsm_abis_mo *mo, uint16_t cause_value, - const char *fmt, ...); +void oml_fail_rep(uint16_t cause_value, const char *fmt, ...); #endif // _OML_H */ diff --git a/include/osmo-bts/signal.h b/include/osmo-bts/signal.h index c8168a26..01d4099b 100644 --- a/include/osmo-bts/signal.h +++ b/include/osmo-bts/signal.h @@ -5,6 +5,7 @@ enum sig_subsys { SS_GLOBAL, + SS_FAIL, }; enum signals_global { -- cgit v1.2.3