port-probe: allow cancellation
This commit is contained in:
@@ -811,6 +811,7 @@ mm_plugin_supports_port (MMPlugin *self,
|
|||||||
self->priv->send_lf,
|
self->priv->send_lf,
|
||||||
self->priv->custom_at_probe,
|
self->priv->custom_at_probe,
|
||||||
self->priv->custom_init,
|
self->priv->custom_init,
|
||||||
|
cancellable,
|
||||||
(GAsyncReadyCallback) port_probe_run_ready,
|
(GAsyncReadyCallback) port_probe_run_ready,
|
||||||
task);
|
task);
|
||||||
}
|
}
|
||||||
|
1012
src/mm-port-probe.c
1012
src/mm-port-probe.c
File diff suppressed because it is too large
Load Diff
@@ -113,12 +113,12 @@ void mm_port_probe_run (MMPortProbe *self,
|
|||||||
gboolean at_send_lf,
|
gboolean at_send_lf,
|
||||||
const MMPortProbeAtCommand *at_custom_probe,
|
const MMPortProbeAtCommand *at_custom_probe,
|
||||||
const MMAsyncMethod *at_custom_init,
|
const MMAsyncMethod *at_custom_init,
|
||||||
|
GCancellable *cancellable,
|
||||||
GAsyncReadyCallback callback,
|
GAsyncReadyCallback callback,
|
||||||
gpointer user_data);
|
gpointer user_data);
|
||||||
gboolean mm_port_probe_run_finish (MMPortProbe *self,
|
gboolean mm_port_probe_run_finish (MMPortProbe *self,
|
||||||
GAsyncResult *result,
|
GAsyncResult *result,
|
||||||
GError **error);
|
GError **error);
|
||||||
gboolean mm_port_probe_run_cancel (MMPortProbe *self);
|
|
||||||
|
|
||||||
gboolean mm_port_probe_run_cancel_at_probing (MMPortProbe *self);
|
gboolean mm_port_probe_run_cancel_at_probing (MMPortProbe *self);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user