diff options
-rw-r--r-- | plugins/linktop/mm-plugin-linktop.c | 2 | ||||
-rw-r--r-- | plugins/nokia/mm-plugin-nokia.c | 2 | ||||
-rw-r--r-- | plugins/option/mm-plugin-hso.c | 2 | ||||
-rw-r--r-- | plugins/option/mm-plugin-option.c | 2 | ||||
-rw-r--r-- | plugins/simtech/mm-plugin-simtech.c | 2 | ||||
-rw-r--r-- | src/mm-port-probe.c | 2 | ||||
-rw-r--r-- | src/mm-port-probe.h | 2 |
7 files changed, 7 insertions, 7 deletions
diff --git a/plugins/linktop/mm-plugin-linktop.c b/plugins/linktop/mm-plugin-linktop.c index de66c3af..7c8f3249 100644 --- a/plugins/linktop/mm-plugin-linktop.c +++ b/plugins/linktop/mm-plugin-linktop.c @@ -63,7 +63,7 @@ grab_port (MMPlugin *self, return FALSE; } - port = mm_port_probe_get_port (probe); /* transfer none */ + port = mm_port_probe_peek_port (probe); /* TODO: Why do we check for device file? */ devfile = g_udev_device_get_device_file (port); diff --git a/plugins/nokia/mm-plugin-nokia.c b/plugins/nokia/mm-plugin-nokia.c index e4ad853f..53480d10 100644 --- a/plugins/nokia/mm-plugin-nokia.c +++ b/plugins/nokia/mm-plugin-nokia.c @@ -75,7 +75,7 @@ grab_port (MMPlugin *self, return FALSE; } - port = mm_port_probe_get_port (probe); /* transfer none */ + port = mm_port_probe_peek_port (probe); /* Look for port type hints */ if (g_udev_device_get_property_as_boolean (port, "ID_MM_NOKIA_PORT_TYPE_MODEM")) diff --git a/plugins/option/mm-plugin-hso.c b/plugins/option/mm-plugin-hso.c index f80540a5..9d8cdca1 100644 --- a/plugins/option/mm-plugin-hso.c +++ b/plugins/option/mm-plugin-hso.c @@ -60,7 +60,7 @@ grab_port (MMPlugin *self, gchar *devfile; MMPortType port_type; - port = mm_port_probe_get_port (probe); /* transfer none */ + port = mm_port_probe_peek_port (probe); subsys = mm_port_probe_get_port_subsys (probe); name = mm_port_probe_get_port_name (probe); diff --git a/plugins/option/mm-plugin-option.c b/plugins/option/mm-plugin-option.c index 5cff84fa..02394297 100644 --- a/plugins/option/mm-plugin-option.c +++ b/plugins/option/mm-plugin-option.c @@ -66,7 +66,7 @@ grab_port (MMPlugin *self, return FALSE; } - port = mm_port_probe_get_port (probe); /* transfer none */ + port = mm_port_probe_peek_port (probe); /* Genuine Option NV devices are always supposed to use USB interface 0 as * the modem/data port, per mail with Option engineers. Only this port diff --git a/plugins/simtech/mm-plugin-simtech.c b/plugins/simtech/mm-plugin-simtech.c index 5a07f1f3..19774a5a 100644 --- a/plugins/simtech/mm-plugin-simtech.c +++ b/plugins/simtech/mm-plugin-simtech.c @@ -65,7 +65,7 @@ grab_port (MMPlugin *self, return FALSE; } - port = mm_port_probe_get_port (probe); /* transfer none */ + port = mm_port_probe_peek_port (probe); /* Look for port type hints; just probing can't distinguish which port should * be the data/primary port on these devices. We have to tag them based on diff --git a/src/mm-port-probe.c b/src/mm-port-probe.c index 1d630a43..7195bc50 100644 --- a/src/mm-port-probe.c +++ b/src/mm-port-probe.c @@ -933,7 +933,7 @@ mm_port_probe_get_port_type (MMPortProbe *self) } GUdevDevice * -mm_port_probe_get_port (MMPortProbe *self) +mm_port_probe_peek_port (MMPortProbe *self) { g_return_val_if_fail (MM_IS_PORT_PROBE (self), NULL); diff --git a/src/mm-port-probe.h b/src/mm-port-probe.h index 669578a7..2cb3f7f0 100644 --- a/src/mm-port-probe.h +++ b/src/mm-port-probe.h @@ -59,7 +59,7 @@ MMPortProbe *mm_port_probe_new (GUdevDevice *port, const gchar *physdev_path, const gchar *driver); -GUdevDevice *mm_port_probe_get_port (MMPortProbe *self); +GUdevDevice *mm_port_probe_peek_port (MMPortProbe *self); const gchar *mm_port_probe_get_port_name (MMPortProbe *self); const gchar *mm_port_probe_get_port_subsys (MMPortProbe *self); const gchar *mm_port_probe_get_port_physdev (MMPortProbe *self); |