plugin: don't provide an additional method to cancel the probing
We'll do it with a GCancellable.
This commit is contained in:
@@ -578,26 +578,6 @@ out:
|
|||||||
g_object_unref (async_result);
|
g_object_unref (async_result);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
|
||||||
mm_plugin_supports_port_cancel (MMPlugin *plugin,
|
|
||||||
const char *subsys,
|
|
||||||
const char *name)
|
|
||||||
{
|
|
||||||
MMPlugin *self = MM_PLUGIN (plugin);
|
|
||||||
MMPluginPrivate *priv = MM_PLUGIN_GET_PRIVATE (self);
|
|
||||||
MMPortProbe *probe;
|
|
||||||
gchar *key;
|
|
||||||
|
|
||||||
key = get_key (subsys, name);
|
|
||||||
probe = g_hash_table_lookup (priv->tasks, key);
|
|
||||||
if (probe) {
|
|
||||||
mm_port_probe_run_cancel (probe);
|
|
||||||
g_hash_table_remove (priv->tasks, key);
|
|
||||||
}
|
|
||||||
|
|
||||||
g_free (key);
|
|
||||||
}
|
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
||||||
MMBaseModem *
|
MMBaseModem *
|
||||||
|
@@ -104,9 +104,6 @@ void mm_plugin_supports_port (MMPlugin *plugin,
|
|||||||
MMPluginSupportsResult mm_plugin_supports_port_finish (MMPlugin *plugin,
|
MMPluginSupportsResult mm_plugin_supports_port_finish (MMPlugin *plugin,
|
||||||
GAsyncResult *result,
|
GAsyncResult *result,
|
||||||
GError **error);
|
GError **error);
|
||||||
void mm_plugin_supports_port_cancel (MMPlugin *plugin,
|
|
||||||
const char *subsys,
|
|
||||||
const char *name);
|
|
||||||
|
|
||||||
MMBaseModem *mm_plugin_create_modem (MMPlugin *plugin,
|
MMBaseModem *mm_plugin_create_modem (MMPlugin *plugin,
|
||||||
GObject *device,
|
GObject *device,
|
||||||
|
Reference in New Issue
Block a user