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
diff --git a/include/osmocom/codec/ecu.h b/include/osmocom/codec/ecu.h
index 99b1430..668df36 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 @@
 };
 
 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,