port-probe: easier check for Icera support over a list of port probes

This commit is contained in:
Aleksander Morgado
2012-08-30 13:57:56 +02:00
parent a4e5964506
commit 1ca46bb4a7
4 changed files with 16 additions and 18 deletions
+13
View File
@@ -1309,6 +1309,19 @@ mm_port_probe_is_icera (MMPortProbe *self)
FALSE);
}
gboolean
mm_port_probe_list_is_icera (GList *probes)
{
GList *l;
for (l = probes; l; l = g_list_next (l)) {
if (mm_port_probe_is_icera (MM_PORT_PROBE (l->data)))
return TRUE;
}
return FALSE;
}
const gchar *
mm_port_probe_get_port_name (MMPortProbe *self)
{
+1
View File
@@ -126,5 +126,6 @@ gboolean mm_port_probe_is_icera (MMPortProbe *self);
/* Additional helpers */
gboolean mm_port_probe_list_has_at_port (GList *list);
gboolean mm_port_probe_list_has_qmi_port (GList *list);
gboolean mm_port_probe_list_is_icera (GList *list);
#endif /* MM_PORT_PROBE_H */