aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocom/bsc
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2018-11-07 12:34:07 +0100
committerMax <msuraev@sysmocom.de>2018-11-08 12:17:25 +0100
commit6fb500f789425c3ca3c9f5d43e74f9bdf90ac2b2 (patch)
tree4afcafaf29ceb9e71ca8d0f8e0918a82bedc16be /include/osmocom/bsc
parent1bcdd730b69d30a82930e9a473e74425a2cc065f (diff)
LCLS: expand logging to print the name of the mode in use
Diffstat (limited to 'include/osmocom/bsc')
-rw-r--r--include/osmocom/bsc/bsc_msc_data.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/osmocom/bsc/bsc_msc_data.h b/include/osmocom/bsc/bsc_msc_data.h
index 6ca03301b..32b161e2d 100644
--- a/include/osmocom/bsc/bsc_msc_data.h
+++ b/include/osmocom/bsc/bsc_msc_data.h
@@ -59,6 +59,13 @@ enum bsc_lcls_mode {
/* we may later introduce BTS_LOOP here: direct RTP between BTSs */
};
+extern const struct value_string bsc_lcls_mode_names[];
+
+static inline const char *bsc_lcls_mode_name(enum bsc_lcls_mode m)
+{
+ return get_value_string(bsc_lcls_mode_names, m);
+}
+
/*! /brief Information on a remote MSC for libbsc.
*/
struct bsc_msc_data {