From ae140bc84a3cc771d730a0ab8522707773eb8c0d Mon Sep 17 00:00:00 2001 From: Philipp Maier Date: Thu, 19 Sep 2019 10:34:11 +0200 Subject: ecu_fr: increase test coverage for FR ECU implementation The ECU implementation for FR is currently tested by calling the related functions directly and by using the generic ECU abstraction layer. However, the test "test_fr_concealment" only tests directly. Lets add a version that uses the generic ECU abstraction layer as well. The generic ECU abstraction layer obsolets the public API functions osmo_ecu_fr_reset() and osmo_ecu_fr_conceal(), lets tag those functions as dprecated. Change-Id: Ib0c8a9b164f14ea4fa00688f760a76cdb4890af4 --- include/osmocom/codec/ecu.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'include/osmocom') diff --git a/include/osmocom/codec/ecu.h b/include/osmocom/codec/ecu.h index 927ca0da..99b1430f 100644 --- a/include/osmocom/codec/ecu.h +++ b/include/osmocom/codec/ecu.h @@ -11,8 +11,10 @@ struct osmo_ecu_fr_state { uint8_t frame_backup[GSM_FR_BYTES]; }; -void osmo_ecu_fr_reset(struct osmo_ecu_fr_state *state, const uint8_t *frame); -int osmo_ecu_fr_conceal(struct osmo_ecu_fr_state *state, uint8_t *frame); +void osmo_ecu_fr_reset(struct osmo_ecu_fr_state *state, const uint8_t *frame) + OSMO_DEPRECATED("Use generic ECU abstraction layer instead"); +int osmo_ecu_fr_conceal(struct osmo_ecu_fr_state *state, uint8_t *frame) + OSMO_DEPRECATED("Use generic ECU abstraction layer instead"); enum osmo_ecu_codec { OSMO_ECU_CODEC_HR, -- cgit v1.2.3