From 0d6420b302d6638501b88460e77d33e4b1631286 Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Thu, 23 Feb 2017 17:34:35 +0100 Subject: logging.h: fix backwards compat broken by recent commit Commit 812ba6dc63a75c39678dd3fe652768e76bf63183 "logging: centrally define ctx and filter indexes" Removed definitions, which causes older e.g. openbsc and osmo-pcu code trees to fail to build against a newer libosmocore. Re-introduce the legacy definitions to redirect to the new ones and re-establish backwards compatibility. The GPRS_* constants used to be defined in gprs_msgb.h, but since that header also includes logging.h, rather place the legacy shims in logging.h next to the other ones. Change-Id: I455bb1bb474d758af0fd5b6397f7e57260ad739d --- include/osmocom/core/logging.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include/osmocom') diff --git a/include/osmocom/core/logging.h b/include/osmocom/core/logging.h index b3685b81..7c8a7ef5 100644 --- a/include/osmocom/core/logging.h +++ b/include/osmocom/core/logging.h @@ -141,6 +141,13 @@ enum logging_filters { _LOGGING_FILTER_COUNT }; +/*! \brief Compatibility with older libosmocore versions */ +#define LOG_FILTER_ALL (1<