aboutsummaryrefslogtreecommitdiff
path: root/src/mm-modem-helpers.h
diff options
context:
space:
mode:
authorDan Williams <dan@ioncontrol.co>2025-05-30 18:54:05 -0500
committerDan Williams <dan@ioncontrol.co>2025-05-30 18:54:05 -0500
commit37f17d4b5859d8a37d1a9350abc9fcb15917de07 (patch)
tree7af9420327a7deea70df1bbcaa004724fed1aec7 /src/mm-modem-helpers.h
parent3ed7f378765b45a84ce6c0b4de6751769fefc221 (diff)
parentdad2d49b696c66ccf868bc89b35a6529f9e15777 (diff)
Merge request !1336 from 'dtmf-serialize'
Serialize DTMF requests and allow setting DTMF duration at call creation time https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/merge_requests/1336 Closes #970
Diffstat (limited to 'src/mm-modem-helpers.h')
-rw-r--r--src/mm-modem-helpers.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mm-modem-helpers.h b/src/mm-modem-helpers.h
index eb62a551..1e3dbb12 100644
--- a/src/mm-modem-helpers.h
+++ b/src/mm-modem-helpers.h
@@ -643,4 +643,13 @@ guint mm_string_uint_map_lookup (const MMStringUintMap *map,
MMModemLock mm_parse_cpin_response (const gchar *response,
gboolean expect_cpin_prefix);
+/*****************************************************************************/
+
+/* 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 */