diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2011-06-02 12:33:09 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2011-06-06 17:21:47 +0200 |
commit | f9f6d1dfdb070bec05e5e7385f8d4eb95e573b6f (patch) | |
tree | 07e29bd3e00f8a4763e1075e5bda2162ec863f42 /src/mm-plugin-base.h | |
parent | 39215599018a12817a853615ccbc4ee67c234858 (diff) |
plugins: propagate cached probing result to supports task
We need to ensure that the supports task always has the results of the probing,
no matter if the probing was just launched by the plugin grabbing the port, or
by a previous plugin. We do this during supports_port(), by propagating to the
supports task any possible previously cached probing results.
Diffstat (limited to 'src/mm-plugin-base.h')
-rw-r--r-- | src/mm-plugin-base.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/mm-plugin-base.h b/src/mm-plugin-base.h index c41f017f..5ab6ec21 100644 --- a/src/mm-plugin-base.h +++ b/src/mm-plugin-base.h @@ -90,6 +90,9 @@ const gchar *mm_plugin_base_supports_task_get_probed_vendor (MMPluginBaseSupport const gchar *mm_plugin_base_supports_task_get_probed_product (MMPluginBaseSupportsTask *task); +gboolean mm_plugin_base_supports_task_propagate_cached (MMPluginBaseSupportsTask *task); + + void mm_plugin_base_supports_task_complete (MMPluginBaseSupportsTask *task, guint32 level); @@ -160,13 +163,9 @@ gboolean mm_plugin_base_probe_port (MMPluginBase *self, GError **error); /* Returns TRUE if the port was previously probed, FALSE if not */ -gboolean mm_plugin_base_get_cached_port_capabilities (MMPluginBase *self, - GUdevDevice *port, - guint32 *capabilities); - -/* Returns TRUE if the port was previously probed, FALSE if not */ -gboolean mm_plugin_base_get_cached_product_info (MMPluginBase *self, +gboolean mm_plugin_base_get_cached_probe_result (MMPluginBase *self, GUdevDevice *port, + guint32 *capabilities, gchar **vendor, gchar **product); |