summaryrefslogtreecommitdiffstats
path: root/include/osmocom
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-02-23 17:34:35 +0100
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-02-23 17:53:07 +0100
commit0d6420b302d6638501b88460e77d33e4b1631286 (patch)
tree217c15232f6952603534728f1faf6dc34f16912a /include/osmocom
parentd1c2fc6de19cf66a91139951bb386659eb1a9502 (diff)
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
Diffstat (limited to 'include/osmocom')
-rw-r--r--include/osmocom/core/logging.h7
1 files changed, 7 insertions, 0 deletions
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<<LOGGING_FILTER_ALL)
+/*! \brief Compatibility with older libosmocore versions */
+#define GPRS_CTX_NSVC LOGGING_CTX_GB_NSVC
+/*! \brief Compatibility with older libosmocore versions */
+#define GPRS_CTX_BVC LOGGING_CTX_GB_BVC
+
struct log_target;
/*! \brief Log filter function */