diff options
author | Aleksander Morgado <aleksandermj@chromium.org> | 2024-04-18 10:55:56 +0000 |
---|---|---|
committer | Aleksander Morgado <aleksandermj@chromium.org> | 2024-05-06 13:27:04 +0000 |
commit | 35c0a6905be622a4e938b66c6128d270cebf1bdc (patch) | |
tree | f8be5eb1966da37416620c081e3c1768f7df1b80 /src/plugins/quectel/mm-shared-quectel.c | |
parent | 9aab129759ce9f9c713b88049a0fb32b43b0adf9 (diff) |
iface-modem: use G_DECLARE|DEFINE_INTERFACE() macros
Diffstat (limited to 'src/plugins/quectel/mm-shared-quectel.c')
-rw-r--r-- | src/plugins/quectel/mm-shared-quectel.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/plugins/quectel/mm-shared-quectel.c b/src/plugins/quectel/mm-shared-quectel.c index 3f3b5f81..93cd3d23 100644 --- a/src/plugins/quectel/mm-shared-quectel.c +++ b/src/plugins/quectel/mm-shared-quectel.c @@ -49,7 +49,7 @@ typedef enum { typedef struct { MMBroadbandModemClass *broadband_modem_class_parent; - MMIfaceModem *iface_modem_parent; + MMIfaceModemInterface *iface_modem_parent; MMIfaceModemLocation *iface_modem_location_parent; MMModemLocationSource provided_sources; MMModemLocationSource enabled_sources; @@ -502,7 +502,7 @@ quectel_qusim_check_for_sim_swap_ready (MMIfaceModem *self, { g_autoptr(GError) error = NULL; - if (!MM_IFACE_MODEM_GET_INTERFACE (self)->check_for_sim_swap_finish (self, res, &error)) + if (!MM_IFACE_MODEM_GET_IFACE (self)->check_for_sim_swap_finish (self, res, &error)) mm_obj_warn (self, "couldn't check SIM swap: %s", error->message); else mm_obj_dbg (self, "check SIM swap completed"); @@ -513,12 +513,12 @@ quectel_qusim_unsolicited_handler (MMPortSerialAt *port, GMatchInfo *match_info, MMIfaceModem *self) { - if (!MM_IFACE_MODEM_GET_INTERFACE (self)->check_for_sim_swap || - !MM_IFACE_MODEM_GET_INTERFACE (self)->check_for_sim_swap_finish) + if (!MM_IFACE_MODEM_GET_IFACE (self)->check_for_sim_swap || + !MM_IFACE_MODEM_GET_IFACE (self)->check_for_sim_swap_finish) return; mm_obj_dbg (self, "checking SIM swap"); - MM_IFACE_MODEM_GET_INTERFACE (self)->check_for_sim_swap ( + MM_IFACE_MODEM_GET_IFACE (self)->check_for_sim_swap ( self, (GAsyncReadyCallback)quectel_qusim_check_for_sim_swap_ready, NULL); |