aboutsummaryrefslogtreecommitdiff
path: root/src/mm-base-modem-at.h
diff options
context:
space:
mode:
authorAleksander Morgado <aleksandermj@chromium.org>2024-04-04 11:22:31 +0000
committerAleksander Morgado <aleksander@aleksander.es>2024-04-23 07:25:12 +0000
commit480e12c34e574e6c282f76344eda05dbfaa66515 (patch)
tree399d026f414a6676fd50b2442bf346b3fac4c5a2 /src/mm-base-modem-at.h
parent67a0af35757a60607b925d52232348be2b11f2f1 (diff)
base-modem-at: switch to use the MMIfacePortAt by default
The whole codebase is updated to assume the MMBaseModem AT operations require an object implementing the MMIfacePortAt interface, instead of a MMPortSerialAt object. In the places where we know the port is a MMPortSerialAt, e.g. when we query explicitly for the primary or secondary serial AT port, we will use an explicit MM_IFACE_PORT_AT() cast when calling the AT command method. In the places where we get_best_at_port() we're going to assume that we don't know the port type. This method will be updated in a follow up commit to support the MMIfacePortAt interface as well.
Diffstat (limited to 'src/mm-base-modem-at.h')
-rw-r--r--src/mm-base-modem-at.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mm-base-modem-at.h b/src/mm-base-modem-at.h
index 96165ba9..ef15cd94 100644
--- a/src/mm-base-modem-at.h
+++ b/src/mm-base-modem-at.h
@@ -19,7 +19,7 @@
#include <gio/gio.h>
#include "mm-base-modem.h"
-#include "mm-port-serial-at.h"
+#include "mm-iface-port-at.h"
typedef enum {
MM_BASE_MODEM_AT_RESPONSE_PROCESSOR_RESULT_CONTINUE,
@@ -87,7 +87,7 @@ GVariant *mm_base_modem_at_sequence_finish (MMBaseModem *self,
/* Fully detailed AT sequence handling, when specific AT port and/or explicit
* cancellations need to be used. */
void mm_base_modem_at_sequence_full (MMBaseModem *self,
- MMPortSerialAt *port,
+ MMIfacePortAt *port,
const MMBaseModemAtCommand *sequence,
gpointer response_processor_context,
GDestroyNotify response_processor_context_free,
@@ -193,7 +193,7 @@ const gchar *mm_base_modem_at_command_finish (MMBaseModem *self,
/* Fully detailed AT command handling, when specific AT port and/or explicit
* cancellations need to be used. */
void mm_base_modem_at_command_full (MMBaseModem *self,
- MMPortSerialAt *port,
+ MMIfacePortAt *port,
const gchar *command,
guint timeout,
gboolean allow_cached,