plugin-base: remove `MM_PLUGIN_SUPPORTS_PORT_IN_PROGRESS' status
Support checks are fully asynchronous and result is always reported when the check is considered ready, so in-progress replies to `mm_plugin_supports_port_finish()' don't make any sense.
This commit is contained in:

committed by
Aleksander Morgado

parent
2b20955489
commit
95ade9c617
@@ -269,11 +269,6 @@ supports_port_ready_cb (MMPlugin *plugin,
|
||||
(GSourceFunc)find_port_support_idle,
|
||||
info);
|
||||
break;
|
||||
|
||||
case MM_PLUGIN_SUPPORTS_PORT_IN_PROGRESS:
|
||||
/* We have full asynchronous support, now, so we shouldn't get an
|
||||
* intermediate state here. */
|
||||
g_assert_not_reached ();
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -49,7 +49,6 @@ typedef void (*MMSupportsPortResultFunc) (MMPlugin *plugin,
|
||||
|
||||
typedef enum {
|
||||
MM_PLUGIN_SUPPORTS_PORT_UNSUPPORTED = 0x0,
|
||||
MM_PLUGIN_SUPPORTS_PORT_IN_PROGRESS,
|
||||
MM_PLUGIN_SUPPORTS_PORT_DEFER,
|
||||
MM_PLUGIN_SUPPORTS_PORT_SUPPORTED
|
||||
} MMPluginSupportsResult;
|
||||
|
Reference in New Issue
Block a user