diff options
author | Max <msuraev@sysmocom.de> | 2016-11-04 16:52:35 +0100 |
---|---|---|
committer | Max <msuraev@sysmocom.de> | 2016-11-08 12:28:52 +0100 |
commit | 5ee3dba39f241c5551196e8f167b907b9920355e (patch) | |
tree | 1e7a0fcc6acebdeb52f6f4f915330660ec42aa22 /include/osmo-bts/msg_utils.h | |
parent | 9f936344eab060d11e65660b18e1deef54d34723 (diff) |
DTX: wrap FSM signal dispatching
Make wrapper function which checks that DTX is enabled for lchan before
dispatching any events.
Change-Id: Id8b519c4af6d505ec9a4b9aadd5107bf7af53d66
Diffstat (limited to 'include/osmo-bts/msg_utils.h')
-rw-r--r-- | include/osmo-bts/msg_utils.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/osmo-bts/msg_utils.h b/include/osmo-bts/msg_utils.h index 42955f17..4f9868ca 100644 --- a/include/osmo-bts/msg_utils.h +++ b/include/osmo-bts/msg_utils.h @@ -5,6 +5,7 @@ #pragma once #include <osmo-bts/gsm_data.h> +#include <osmo-bts/dtx_dl_amr_fsm.h> #include <osmocom/codec/codec.h> @@ -27,6 +28,7 @@ enum { void lchan_set_marker(bool t, struct gsm_lchan *lchan); bool dtx_dl_amr_enabled(const struct gsm_lchan *lchan); +void dtx_dispatch(struct gsm_lchan *lchan, enum dtx_dl_amr_fsm_events e); void dtx_cache_payload(struct gsm_lchan *lchan, const uint8_t *l1_payload, size_t length, uint32_t fn, int update); int dtx_dl_amr_fsm_step(struct gsm_lchan *lchan, const uint8_t *rtp_pl, |