plugin-manager: new methods to check for ongoing port support operations

The new mm_plugin_manager_is_finding_port_support() allows to check whether the
Plugin Manager is looking for support in a specific port.

The new mm_plugin_manager_is_checking_device_support() allows to check whether
the Plugin Manager is looking for support in any port of a given device.
This commit is contained in:
Aleksander Morgado
2012-03-15 14:14:20 +01:00
committed by Aleksander Morgado
parent 5f2d0d474c
commit fad89b1d7e
2 changed files with 63 additions and 0 deletions
+13
View File
@@ -59,4 +59,17 @@ MMPlugin *mm_plugin_manager_find_port_support_finish (MMPluginManager *self,
GAsyncResult *result,
GError **error);
/* Returns TRUE if there is an ongoing find operation on the given port */
gboolean mm_plugin_manager_is_finding_port_support (MMPluginManager *self,
const gchar *subsys,
const gchar *name,
const gchar *physdev_path);
/* Returns TRUE if there is an ongoing find operation in a port of the given
* device (and if so, returns subsystem and name of the port) */
gboolean mm_plugin_manager_is_finding_device_support (MMPluginManager *self,
const gchar *physdev_path,
const gchar **subsys,
const gchar **name);
#endif /* MM_PLUGIN_MANAGER_H */