aboutsummaryrefslogtreecommitdiff
path: root/src/mm-plugin.h
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2016-01-15 17:54:51 +0100
committerAleksander Morgado <aleksander@aleksander.es>2016-03-09 23:59:46 +0100
commitd3bf07e7a87bac85778750a87463b95f2180c55c (patch)
tree8f72a3161b36be28584ebab24fa5ce5f42fd1df3 /src/mm-plugin.h
parentfd4fdbf21b20983cdd46fc925389dd96ca3a99d3 (diff)
plugin: allow cancellation of the port probe operation
Diffstat (limited to 'src/mm-plugin.h')
-rw-r--r--src/mm-plugin.h20
1 files changed, 11 insertions, 9 deletions
diff --git a/src/mm-plugin.h b/src/mm-plugin.h
index 7497afbd..ee03686b 100644
--- a/src/mm-plugin.h
+++ b/src/mm-plugin.h
@@ -64,7 +64,8 @@
#define MM_PLUGIN_SEND_LF "send-lf"
typedef enum {
- MM_PLUGIN_SUPPORTS_PORT_UNSUPPORTED = 0x0,
+ MM_PLUGIN_SUPPORTS_PORT_UNKNOWN = -1,
+ MM_PLUGIN_SUPPORTS_PORT_UNSUPPORTED,
MM_PLUGIN_SUPPORTS_PORT_DEFER,
MM_PLUGIN_SUPPORTS_PORT_DEFER_UNTIL_SUGGESTED,
MM_PLUGIN_SUPPORTS_PORT_SUPPORTED
@@ -119,14 +120,15 @@ MMPluginSupportsHint mm_plugin_discard_port_early (MMPlugin *plugin,
MMDevice *device,
GUdevDevice *port);
-void mm_plugin_supports_port (MMPlugin *plugin,
- MMDevice *device,
- GUdevDevice *port,
- GAsyncReadyCallback callback,
- gpointer user_data);
-MMPluginSupportsResult mm_plugin_supports_port_finish (MMPlugin *plugin,
- GAsyncResult *result,
- GError **error);
+void mm_plugin_supports_port (MMPlugin *plugin,
+ MMDevice *device,
+ GUdevDevice *port,
+ GCancellable *cancellable,
+ GAsyncReadyCallback callback,
+ gpointer user_data);
+MMPluginSupportsResult mm_plugin_supports_port_finish (MMPlugin *plugin,
+ GAsyncResult *result,
+ GError **error);
MMBaseModem *mm_plugin_create_modem (MMPlugin *plugin,
MMDevice *device,