aboutsummaryrefslogtreecommitdiff
path: root/src/mm-port-serial-at.h
diff options
context:
space:
mode:
authorDan Williams <dan@ioncontrol.co>2025-05-22 08:09:41 -0500
committerDan Williams <dan@ioncontrol.co>2025-05-22 08:09:41 -0500
commit7ae153880c75f89dc6427b234d85c57717bb8df3 (patch)
treef6ab6714e3da04b954761598e3c73153c81588b5 /src/mm-port-serial-at.h
parent41ceaf6d5ecd85a7f88fc4ed9bdc80a6d2313d23 (diff)
parentc3c6fdc55e5a45f9bf0611ec0925fd0702aff316 (diff)
Merge request !1356 from 'sierra-call-urc-fix'
serial-parsers: don't echo-remove strange call start/end URCs https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/merge_requests/1356
Diffstat (limited to 'src/mm-port-serial-at.h')
-rw-r--r--src/mm-port-serial-at.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mm-port-serial-at.h b/src/mm-port-serial-at.h
index 9ed6a218..8377d8da 100644
--- a/src/mm-port-serial-at.h
+++ b/src/mm-port-serial-at.h
@@ -65,6 +65,9 @@ typedef void (*MMPortSerialAtUnsolicitedMsgFn) (MMPortSerialAt *port,
GMatchInfo *match_info,
gpointer user_data);
+typedef void (*MMPortSerialAtRemoveEchoFn) (gpointer user_data,
+ GByteArray *response);
+
#define MM_PORT_SERIAL_AT_REMOVE_ECHO "remove-echo"
#define MM_PORT_SERIAL_AT_INIT_SEQUENCE_ENABLED "init-sequence-enabled"
#define MM_PORT_SERIAL_AT_INIT_SEQUENCE "init-sequence"
@@ -97,6 +100,7 @@ void mm_port_serial_at_enable_unsolicited_msg_handler (MMPortSerialAt *self,
void mm_port_serial_at_set_response_parser (MMPortSerialAt *self,
MMPortSerialAtResponseParserFn fn,
+ MMPortSerialAtRemoveEchoFn echo_fn,
gpointer user_data,
GDestroyNotify notify);
@@ -113,8 +117,6 @@ gchar *mm_port_serial_at_command_finish (MMPortSerialAt *self,
GError **error);
/* Just for unit tests */
-void mm_port_serial_at_remove_echo (GByteArray *response);
-
void mm_port_serial_at_set_flags (MMPortSerialAt *self,
MMPortSerialAtFlag flags);