From 87b51439c1ba16e50e5a58d277d8de12d7109145 Mon Sep 17 00:00:00 2001 From: Vadim Yanitskiy Date: Thu, 7 Nov 2019 22:15:13 +0700 Subject: core/defs.h: introduce and use OSMO_DEPRECATED_OUTSIDE The new OSMO_DEPRECATED_OUTSIDE macro is similar to the existing OSMO_DEPRECATED_OUTSIDE_LIBOSMOCORE, but allows to override the deprecation message. Let's use it to suspend deprecation warnings related to: - gsm48_decode_bcd_number(), - osmo_ecu_fr_conceal(), - osmo_ecu_fr_reset(), as they're intentionally used in scope of the library. Change-Id: I1b0eff1396776900c1286e41da3aee3ff78b326e --- include/osmocom/codec/ecu.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'include/osmocom/codec/ecu.h') diff --git a/include/osmocom/codec/ecu.h b/include/osmocom/codec/ecu.h index 99b1430f..668df367 100644 --- a/include/osmocom/codec/ecu.h +++ b/include/osmocom/codec/ecu.h @@ -3,6 +3,7 @@ #include #include +#include #include /* ECU state for GSM-FR */ @@ -12,9 +13,9 @@ struct osmo_ecu_fr_state { }; void osmo_ecu_fr_reset(struct osmo_ecu_fr_state *state, const uint8_t *frame) - OSMO_DEPRECATED("Use generic ECU abstraction layer instead"); + OSMO_DEPRECATED_OUTSIDE("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"); + OSMO_DEPRECATED_OUTSIDE("Use generic ECU abstraction layer instead"); enum osmo_ecu_codec { OSMO_ECU_CODEC_HR, -- cgit v1.2.3