aboutsummaryrefslogtreecommitdiff
path: root/src/mm-base-modem-at.h
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2024-02-13 10:39:43 -0600
committerAleksander Morgado <aleksander@aleksander.es>2024-02-19 11:24:27 +0000
commitded76a0abbc7c97281d380e5431861fd16c23aa0 (patch)
treeb3d558e1e6a3d89ed410cde1fd644bf0dbc060ee /src/mm-base-modem-at.h
parentb3708636b190f98b8c0f4877981cb850d90d6845 (diff)
base-modem-at: add optional wait before sending command in a sequence
Can be used for easier command retries where the generic sequence code handles the GTimeout source. Signed-off-by: Dan Williams <dcbw@redhat.com>
Diffstat (limited to 'src/mm-base-modem-at.h')
-rw-r--r--src/mm-base-modem-at.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mm-base-modem-at.h b/src/mm-base-modem-at.h
index 770c0e4b..ae9b0be7 100644
--- a/src/mm-base-modem-at.h
+++ b/src/mm-base-modem-at.h
@@ -67,6 +67,8 @@ typedef struct {
gboolean allow_cached;
/* The response processor */
MMBaseModemAtResponseProcessor response_processor;
+ /* Time to wait before sending this command (in seconds) */
+ guint wait_seconds;
} MMBaseModemAtCommand;
/* Generic AT sequence handling, using the best AT port available and without
@@ -220,6 +222,7 @@ typedef struct {
guint timeout;
gboolean allow_cached;
MMBaseModemAtResponseProcessor response_processor;
+ guint wait_seconds;
} MMBaseModemAtCommandAlloc;
G_STATIC_ASSERT (sizeof (MMBaseModemAtCommandAlloc) == sizeof (MMBaseModemAtCommand));