aboutsummaryrefslogtreecommitdiff
path: root/src/mm-port-qmi.c
diff options
context:
space:
mode:
authorEric Caruso <ejcaruso@chromium.org>2017-10-20 10:10:47 -0700
committerAleksander Morgado <aleksander@aleksander.es>2017-10-22 11:53:32 +0200
commit098c4c0271e04b564da57bb5c9e4e8e067bd58c9 (patch)
treeec93cc71c640658de10ff507c13da253f7c52f1e /src/mm-port-qmi.c
parentb4278615fc273756ae5fe2b84da1e39a56d3e121 (diff)
mm-broadband-modem-qmi: reprobe on qmi-proxy death
This allows us to reprobe the modem and respawn the qmi-proxy in case it dies on us. This gets us access to the modem and unsolicited notifications again. Do this by connecting to the device-removed signal on QmiDevice. --- Rebased on top of git master by Aleksander Morgado <aleksander@aleksander.es>
Diffstat (limited to 'src/mm-port-qmi.c')
-rw-r--r--src/mm-port-qmi.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mm-port-qmi.c b/src/mm-port-qmi.c
index e2f63054..129700c9 100644
--- a/src/mm-port-qmi.c
+++ b/src/mm-port-qmi.c
@@ -72,6 +72,16 @@ mm_port_qmi_get_client (MMPortQmi *self,
/*****************************************************************************/
+QmiDevice *
+mm_port_qmi_peek_device (MMPortQmi *self)
+{
+ g_return_val_if_fail (MM_IS_PORT_QMI (self), NULL);
+
+ return self->priv->qmi_device;
+}
+
+/*****************************************************************************/
+
typedef struct {
ServiceInfo *info;
} AllocateClientContext;