aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocom/core/defs.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/core/defs.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/core/defs.h')
-rw-r--r--include/osmocom/core/defs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/osmocom/core/defs.h b/include/osmocom/core/defs.h
index 5e5aa90f..33ffb7bb 100644
--- a/include/osmocom/core/defs.h
+++ b/include/osmocom/core/defs.h
@@ -43,8 +43,10 @@
#if BUILDING_LIBOSMOCORE
# define OSMO_DEPRECATED_OUTSIDE_LIBOSMOCORE
+# define OSMO_DEPRECATED_OUTSIDE(text)
#else
# define OSMO_DEPRECATED_OUTSIDE_LIBOSMOCORE OSMO_DEPRECATED("For internal use inside libosmocore only.")
+# define OSMO_DEPRECATED_OUTSIDE(text) OSMO_DEPRECATED(text)
#endif
#undef _OSMO_HAS_ATTRIBUTE_DEPRECATED_WITH_MESSAGE