cinterion: implement support for the new SWWAN interface
This commit is contained in:
committed by
Aleksander Morgado
parent
2f12d96fe4
commit
1ffcb16349
@@ -697,6 +697,26 @@ mm_base_modem_peek_best_data_port (MMBaseModem *self,
|
||||
return NULL;
|
||||
}
|
||||
|
||||
MMPort *
|
||||
mm_base_modem_peek_current_data_port (MMBaseModem *self,
|
||||
MMPortType type)
|
||||
{
|
||||
GList *l;
|
||||
|
||||
g_return_val_if_fail (MM_IS_BASE_MODEM (self), NULL);
|
||||
|
||||
/* Return first connected data port */
|
||||
for (l = self->priv->data; l; l = g_list_next (l)) {
|
||||
if (mm_port_get_connected ((MMPort *)l->data) &&
|
||||
(mm_port_get_port_type ((MMPort *)l->data) == type ||
|
||||
type == MM_PORT_TYPE_UNKNOWN)) {
|
||||
return (MMPort *)l->data;
|
||||
}
|
||||
}
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
GList *
|
||||
mm_base_modem_get_data_ports (MMBaseModem *self)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user