aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/include/openbsc/debug.h
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2010-05-15 23:52:02 +0200
committerHarald Welte <laforge@gnumonks.org>2010-05-15 23:52:02 +0200
commit8be8c8fec9be1a117d47b5af462c0f4b47c3e062 (patch)
tree79f2b14fcc7d6108c91921c7eacd67859b7dcb10 /openbsc/include/openbsc/debug.h
parent3bac9a84ceeb17edd71a11e9b1b9a30bd409f827 (diff)
[GPRS] NS: Allow filtering of log messages by NSVC / NSEI
Diffstat (limited to 'openbsc/include/openbsc/debug.h')
-rw-r--r--openbsc/include/openbsc/debug.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/openbsc/include/openbsc/debug.h b/openbsc/include/openbsc/debug.h
index 9c3e6451c..71e973a5f 100644
--- a/openbsc/include/openbsc/debug.h
+++ b/openbsc/include/openbsc/debug.h
@@ -42,15 +42,24 @@ enum {
#define BSC_CTX_SUBSCR 1
#define BSC_CTX_BTS 2
#define BSC_CTX_SCCP 3
+#define BSC_CTX_NSVC 4
+
+#define LOGGING_STR "Configure log message to this terminal\n"
/* target */
enum {
//DEBUG_FILTER_ALL = 1 << 0,
LOG_FILTER_IMSI = 1 << 1,
+ LOG_FILTER_NSVC = 1 << 2,
};
+/* we don't need a header dependency for this... */
+struct gprs_nsvc;
+
void log_set_imsi_filter(struct log_target *target, const char *imsi);
+void log_set_nsvc_filter(struct log_target *target,
+ const struct gprs_nsvc *nsvc);
extern const struct log_info log_info;