diff options
author | Thomas Bechtold <thomasbechtold@jpberlin.de> | 2011-03-11 20:25:22 -0600 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2011-03-11 20:25:22 -0600 |
commit | b3b1d5309a4ead90e9a503586b9224d345680d7f (patch) | |
tree | 80323c76ac4e6a37f3ffb97d54ce40a00e06b25f /src/mm-plugin-base.h | |
parent | 971600b9099e5d98c32b28cbb0a5305c48c76728 (diff) |
core: allow plugins to handle custom init responses
Diffstat (limited to 'src/mm-plugin-base.h')
-rw-r--r-- | src/mm-plugin-base.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/mm-plugin-base.h b/src/mm-plugin-base.h index a32d53bf..fa67c0a6 100644 --- a/src/mm-plugin-base.h +++ b/src/mm-plugin-base.h @@ -56,6 +56,9 @@ typedef struct { GType mm_plugin_base_supports_task_get_type (void); +typedef guint32 (*MMBaseSupportsTaskCustomInitResultFunc) (GString* response, + gpointer user_data); + MMPlugin *mm_plugin_base_supports_task_get_plugin (MMPluginBaseSupportsTask *task); GUdevDevice *mm_plugin_base_supports_task_get_port (MMPluginBaseSupportsTask *task); @@ -73,7 +76,9 @@ void mm_plugin_base_supports_task_set_custom_init_command (MMPluginBaseSupportsT const char *cmd, guint32 delay_seconds, guint32 max_tries, - gboolean fail_if_timeout); + gboolean fail_if_timeout, + MMBaseSupportsTaskCustomInitResultFunc callback, + gpointer callback_data); #define MM_TYPE_PLUGIN_BASE (mm_plugin_base_get_type ()) #define MM_PLUGIN_BASE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), MM_TYPE_PLUGIN_BASE, MMPluginBase)) @@ -114,6 +119,9 @@ struct _MMPluginBaseClass { const char *response, const GError *error); + void (*handle_custom_init_response) (MMPluginBaseSupportsTask *task, + GString *response); + /* Signals */ void (*probe_result) (MMPluginBase *self, MMPluginBaseSupportsTask *task, |