summaryrefslogtreecommitdiffstats
path: root/include/osmocom/core/logging.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/osmocom/core/logging.h')
-rw-r--r--include/osmocom/core/logging.h19
1 files changed, 17 insertions, 2 deletions
diff --git a/include/osmocom/core/logging.h b/include/osmocom/core/logging.h
index fcf77f0e..b3685b81 100644
--- a/include/osmocom/core/logging.h
+++ b/include/osmocom/core/logging.h
@@ -89,8 +89,6 @@ void logp(int subsys, const char *file, int line, int cont, const char *format,
#define LOGL_ERROR 7 /*!< \brief error condition, requires user action */
#define LOGL_FATAL 8 /*!< \brief fatal, program aborted */
-#define LOG_FILTER_ALL 0x0001
-
/* logging levels defined by the library itself */
#define DLGLOBAL -1 /*!< global logging */
#define DLLAPD -2 /*!< LAPD implementation */
@@ -126,6 +124,23 @@ struct log_context {
void *ctx[LOG_MAX_CTX+1];
};
+enum logging_ctx_items {
+ LOGGING_CTX_GB_NSVC,
+ LOGGING_CTX_GB_BVC,
+ LOGGING_CTX_BSC_SUBSCR,
+ LOGGING_CTX_VLR_SUBSCR,
+ _LOGGING_CTX_COUNT
+};
+
+enum logging_filters {
+ LOGGING_FILTER_ALL,
+ LOGGING_FILTER_GB_NSVC,
+ LOGGING_FILTER_GB_BVC,
+ LOGGING_FILTER_BSC_SUBSCR,
+ LOGGING_FILTER_VLR_SUBSCR,
+ _LOGGING_FILTER_COUNT
+};
+
struct log_target;
/*! \brief Log filter function */