aboutsummaryrefslogtreecommitdiff
path: root/src/mm-modem-helpers.h
diff options
context:
space:
mode:
authorBen Chan <benchan@chromium.org>2018-10-20 20:20:54 -0700
committerBen Chan <benchan@chromium.org>2018-10-26 09:50:01 -0700
commit942bdeaec26eb587f39e9709dff0174bc4bfdd42 (patch)
treececd23467a1a9183014bb37813f1754769bb1073 /src/mm-modem-helpers.h
parent025fcb7e92dde84c45085a1087375413c23d8ab7 (diff)
modem-helpers: new helper to convert binary-coded decimals
This patch adds a mm_bcd_to_string() helper function to convert a byte array representing a binary-coded decimal (BCD) number to a string representing the equivalent decimal number.
Diffstat (limited to 'src/mm-modem-helpers.h')
-rw-r--r--src/mm-modem-helpers.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mm-modem-helpers.h b/src/mm-modem-helpers.h
index a2ee8254..71d8893e 100644
--- a/src/mm-modem-helpers.h
+++ b/src/mm-modem-helpers.h
@@ -88,6 +88,8 @@ GArray *mm_filter_supported_modes (const GArray *all,
GArray *mm_filter_supported_capabilities (MMModemCapability all,
const GArray *supported_combinations);
+gchar *mm_bcd_to_string (const guint8 *bcd, gsize bcd_len);
+
/*****************************************************************************/
/* VOICE specific helpers and utilities */
/*****************************************************************************/