logging.h: fix backwards compat broken by recent commit

Commit 812ba6dc63
"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
This commit is contained in:
Neels Hofmeyr 2017-02-23 17:34:35 +01:00
parent d1c2fc6de1
commit 0d6420b302
1 changed files with 7 additions and 0 deletions

View File

@ -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 */