aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocom/gsm/gsm48_ie.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/gsm/gsm48_ie.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/gsm/gsm48_ie.h')
-rw-r--r--include/osmocom/gsm/gsm48_ie.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/osmocom/gsm/gsm48_ie.h b/include/osmocom/gsm/gsm48_ie.h
index 71050df5..339aa136 100644
--- a/include/osmocom/gsm/gsm48_ie.h
+++ b/include/osmocom/gsm/gsm48_ie.h
@@ -7,6 +7,7 @@
#include <errno.h>
#include <osmocom/core/msgb.h>
+#include <osmocom/core/defs.h>
#include <osmocom/gsm/tlv.h>
#include <osmocom/gsm/mncc.h>
#include <osmocom/gsm/protocol/gsm_04_08.h>
@@ -14,7 +15,7 @@
/* decode a 'called/calling/connect party BCD number' as in 10.5.4.7 */
int gsm48_decode_bcd_number(char *output, int output_len,
const uint8_t *bcd_lv, int h_len)
- OSMO_DEPRECATED("Use gsm48_decode_bcd_number2() for improved bounds checking");
+ OSMO_DEPRECATED_OUTSIDE("Use gsm48_decode_bcd_number2() for improved bounds checking");
int gsm48_decode_bcd_number2(char *output, size_t output_len,
const uint8_t *bcd_lv, size_t input_len,
size_t h_len);