aboutsummaryrefslogtreecommitdiff
path: root/src/mm-modem-helpers.h
diff options
context:
space:
mode:
authorDan Williams <dan@ioncontrol.co>2025-05-06 08:54:29 -0500
committerDan Williams <dan@ioncontrol.co>2025-05-30 08:02:47 -0500
commit56fe8e7d314c637d6df45f693e2377b18685a405 (patch)
treeb5b6a541241ae7bf77f33bebf3c12100e67c4c3b /src/mm-modem-helpers.h
parent957a141e57e622a9d7eeac160d67be5b0b4cdf7c (diff)
modem-helpers: add utility function to split DTMF runs
Split into groups of non-pause characters and single pause characters by themselves and return as an array of strings. Signed-off-by: Dan Williams <dan@ioncontrol.co>
Diffstat (limited to 'src/mm-modem-helpers.h')
-rw-r--r--src/mm-modem-helpers.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mm-modem-helpers.h b/src/mm-modem-helpers.h
index 74626c90..1e3dbb12 100644
--- a/src/mm-modem-helpers.h
+++ b/src/mm-modem-helpers.h
@@ -648,4 +648,8 @@ MMModemLock mm_parse_cpin_response (const gchar *response,
/* Helper to clamp duration and round to next 100ms */
guint mm_dtmf_duration_normalize (guint duration_ms);
+#define MM_CALL_DTMF_PAUSE_CHAR ','
+
+GPtrArray *mm_dtmf_split (const gchar *dtmf);
+
#endif /* MM_MODEM_HELPERS_H */