aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocore
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2010-03-04 10:50:32 +0100
committerHarald Welte <laforge@gnumonks.org>2010-03-04 10:50:32 +0100
commita73e2f9acb839a1f08d8bc5c7e6074c16f0cf1fe (patch)
tree46d26080f830545c24a455a1ac3aaeca64663473 /include/osmocore
parentaebe08c71f4704914c2af40620d0675cf29d2639 (diff)
import bcd2char() and char2bcd() from OpenBSC
Diffstat (limited to 'include/osmocore')
-rw-r--r--include/osmocore/utils.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/osmocore/utils.h b/include/osmocore/utils.h
index cf3b4607..51c6f035 100644
--- a/include/osmocore/utils.h
+++ b/include/osmocore/utils.h
@@ -13,5 +13,8 @@ struct value_string {
const char *get_value_string(const struct value_string *vs, uint32_t val);
int get_string_value(const struct value_string *vs, const char *str);
+char bcd2char(uint8_t bcd);
+/* only works for numbers in ascci */
+uint8_t char2bcd(char c);
#endif