diff options
author | Aleksander Morgado <aleksander@gnu.org> | 2011-09-06 00:12:57 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2012-03-15 14:14:19 +0100 |
commit | 1e3213970714e5d5144ba0a00ea47d0c9681cce4 (patch) | |
tree | 3193f0e37afbcb514620d76a0c0e4bce0b27603a /src/mm-plugin-manager.h | |
parent | 7007825781122c1f1942a4135f39088ab75782f3 (diff) |
plugin-manager: new method to look for best plugin supporting a given port
The new `mm_plugin_manager_find_port_support()' method requests the Plugin
Manager to iterate over the list of plugins internally handled, launching
supports task for the given port in each of them.
The method is fully asynchronous, and the result can be retrieved with
`mm_plugin_manager_find_port_support_finish()' once the operation is ready.
Diffstat (limited to 'src/mm-plugin-manager.h')
-rw-r--r-- | src/mm-plugin-manager.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/mm-plugin-manager.h b/src/mm-plugin-manager.h index 001fd34b..673ec932 100644 --- a/src/mm-plugin-manager.h +++ b/src/mm-plugin-manager.h @@ -20,6 +20,9 @@ #include <glib-object.h> +#include "mm-plugin.h" +#include "mm-modem.h" + #define MM_TYPE_PLUGIN_MANAGER (mm_plugin_manager_get_type ()) #define MM_PLUGIN_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), MM_TYPE_PLUGIN_MANAGER, MMPluginManager)) #define MM_PLUGIN_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), MM_TYPE_PLUGIN_MANAGER, MMPluginManagerClass)) @@ -42,4 +45,17 @@ GType mm_plugin_manager_get_type (void); MMPluginManager *mm_plugin_manager_new (GError **error); +/* Asynchronous operation to find the best plugin giving support to a + * given port. */ +void mm_plugin_manager_find_port_support (MMPluginManager *self, + const gchar *subsys, + const gchar *name, + const gchar *physdev_path, + MMModem *existing, + GAsyncReadyCallback callback, + gpointer user_data); +MMPlugin *mm_plugin_manager_find_port_support_finish (MMPluginManager *self, + GAsyncResult *result, + GError **error); + #endif /* MM_PLUGIN_MANAGER_H */ |