If the headset is plugged in (or repluged) after the library is
initialized, the library does not pick it up. This adds an action
allowing the user to trigger a rescan.
Signed-off-by: Marc Olson <marcolso@amazon.com>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
NULL, NULL);
}
+static void
+headset_reinit_headset(PurplePluginAction *action)
+{
+ shutdown_headset();
+ init_headset();
+ purple_notify_info(action->context,
+ "Headset media plugin", "Headset rescanned.", NULL);
+}
+
static GList*
headset_plugin_actions(PurplePlugin *plugin,
gpointer context)
headset_show_about_plugin);
acts = g_list_append(acts, act);
+ act = purple_plugin_action_new(_("Rescan headset..."),
+ headset_reinit_headset);
+ acts = g_list_append(acts, act);
+
return acts;
}