summaryrefslogtreecommitdiffstats
path: root/include/osmocom/codec/ecu.h
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2019-11-07 22:15:13 +0700
committerlaforge <laforge@osmocom.org>2019-12-11 12:42:05 +0000
commit87b51439c1ba16e50e5a58d277d8de12d7109145 (patch)
tree9ec7e694743e375df337f6fba086242595887697 /include/osmocom/codec/ecu.h
parent94cd4acef867fa123b8d834592a7824c43ede492 (diff)
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
Diffstat (limited to 'include/osmocom/codec/ecu.h')
-rw-r--r--include/osmocom/codec/ecu.h5
1 files changed, 3 insertions, 2 deletions
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 <stdint.h>
#include <stdbool.h>
+#include <osmocom/core/defs.h>
#include <osmocom/codec/codec.h>
/* 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,