aboutsummaryrefslogtreecommitdiff
path: root/plugins/simtech
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/simtech')
-rw-r--r--plugins/simtech/mm-broadband-modem-simtech.c8
-rw-r--r--plugins/simtech/mm-plugin-simtech.c8
2 files changed, 8 insertions, 8 deletions
diff --git a/plugins/simtech/mm-broadband-modem-simtech.c b/plugins/simtech/mm-broadband-modem-simtech.c
index a75d9e4c..25594d8d 100644
--- a/plugins/simtech/mm-broadband-modem-simtech.c
+++ b/plugins/simtech/mm-broadband-modem-simtech.c
@@ -69,7 +69,7 @@ simtech_act_to_mm_act (int nsmod)
}
static void
-simtech_tech_changed (MMAtSerialPort *port,
+simtech_tech_changed (MMPortSerialAt *port,
GMatchInfo *match_info,
MMBroadbandModemSimtech *self)
{
@@ -88,7 +88,7 @@ static void
set_unsolicited_events_handlers (MMBroadbandModemSimtech *self,
gboolean enable)
{
- MMAtSerialPort *ports[2];
+ MMPortSerialAt *ports[2];
guint i;
GRegex *regex;
@@ -104,10 +104,10 @@ set_unsolicited_events_handlers (MMBroadbandModemSimtech *self,
continue;
/* Access technology related */
- mm_at_serial_port_add_unsolicited_msg_handler (
+ mm_port_serial_at_add_unsolicited_msg_handler (
ports[i],
regex,
- enable ? (MMAtSerialUnsolicitedMsgFn)simtech_tech_changed : NULL,
+ enable ? (MMPortSerialAtUnsolicitedMsgFn)simtech_tech_changed : NULL,
enable ? self : NULL,
NULL);
}
diff --git a/plugins/simtech/mm-plugin-simtech.c b/plugins/simtech/mm-plugin-simtech.c
index 9923cb7d..95b8211e 100644
--- a/plugins/simtech/mm-plugin-simtech.c
+++ b/plugins/simtech/mm-plugin-simtech.c
@@ -56,7 +56,7 @@ grab_port (MMPlugin *self,
{
GUdevDevice *port;
MMPortType ptype;
- MMAtPortFlag pflags = MM_AT_PORT_FLAG_NONE;
+ MMPortSerialAtFlag pflags = MM_PORT_SERIAL_AT_FLAG_NONE;
/* The Simtech plugin cannot do anything with non-AT non-QCDM ports */
if (!mm_port_probe_is_at (probe) &&
@@ -78,19 +78,19 @@ grab_port (MMPlugin *self,
mm_dbg ("Simtech: AT port '%s/%s' flagged as primary",
mm_port_probe_get_port_subsys (probe),
mm_port_probe_get_port_name (probe));
- pflags = MM_AT_PORT_FLAG_PRIMARY;
+ pflags = MM_PORT_SERIAL_AT_FLAG_PRIMARY;
} else if (g_udev_device_get_property_as_boolean (port, "ID_MM_SIMTECH_PORT_TYPE_AUX")) {
mm_dbg ("Simtech: AT port '%s/%s' flagged as secondary",
mm_port_probe_get_port_subsys (probe),
mm_port_probe_get_port_name (probe));
- pflags = MM_AT_PORT_FLAG_SECONDARY;
+ pflags = MM_PORT_SERIAL_AT_FLAG_SECONDARY;
}
/* If the port was tagged by the udev rules but isn't a primary or secondary,
* then ignore it to guard against race conditions if a device just happens
* to show up with more than two AT-capable ports.
*/
- if (pflags == MM_AT_PORT_FLAG_NONE &&
+ if (pflags == MM_PORT_SERIAL_AT_FLAG_NONE &&
g_udev_device_get_property_as_boolean (port, "ID_MM_SIMTECH_TAGGED"))
ptype = MM_PORT_TYPE_IGNORED;
else