aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils.hpp')
-rw-r--r--src/utils.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/utils.hpp b/src/utils.hpp
index 3ff9f13..fdb673e 100644
--- a/src/utils.hpp
+++ b/src/utils.hpp
@@ -85,3 +85,6 @@ std::string pnum_to_str(uint16_t Programme_Number);
// Convert and absolute 16-bit int value to dB. If value is zero, returns
// -90dB
int absolute_to_dB(int16_t value);
+
+// Calculate the shortlabel from the label and the flag
+std::string flag_to_shortlabel(const std::string& label, uint16_t flag);