From 55eb1c54ebe33faa8b1eb8c527d5644961ca78dc Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Sun, 3 Feb 2019 20:12:50 -0500 Subject: FS#7704 - Talk support for plugins Original patch by Mario Lang Heavily updated by Igor Poretsky Further updated by myself This patch breaks binary API compatibility by placing the new functions where they make the most logical sense. IMO this is the better approach to take given the scope of the changes needed for talk support. Since binary API is changing, the patch also moves some other functions around to more logical locations. As well as voice support in plugins, this patch voice-enables several simple plugins. There will be follow-up patches for many plugins that build on this one. Change-Id: I18070c06e77e8a3c016c2eb6b6c5dbe6633b9b54 --- apps/plugins/lib/playback_control.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'apps/plugins/lib/playback_control.c') diff --git a/apps/plugins/lib/playback_control.c b/apps/plugins/lib/playback_control.c index 1be234f70f..363033b1f2 100644 --- a/apps/plugins/lib/playback_control.c +++ b/apps/plugins/lib/playback_control.c @@ -90,21 +90,21 @@ static bool repeat_mode(void) return false; } -MENUITEM_FUNCTION(prevtrack_item, 0, "Previous Track", +MENUITEM_FUNCTION(prevtrack_item, 0, ID2P(LANG_PREVTRACK), prevtrack, NULL, NULL, Icon_NOICON); -MENUITEM_FUNCTION(playpause_item, 0, "Pause / Play", +MENUITEM_FUNCTION(playpause_item, 0, ID2P(LANG_PLAYPAUSE), play, NULL, NULL, Icon_NOICON); -MENUITEM_FUNCTION(stop_item, 0, "Stop Playback", +MENUITEM_FUNCTION(stop_item, 0, ID2P(LANG_STOP_PLAYBACK), stop, NULL, NULL, Icon_NOICON); -MENUITEM_FUNCTION(nexttrack_item, 0, "Next Track", +MENUITEM_FUNCTION(nexttrack_item, 0, ID2P(LANG_NEXTTRACK), nexttrack, NULL, NULL, Icon_NOICON); -MENUITEM_FUNCTION(volume_item, 0, "Change Volume", +MENUITEM_FUNCTION(volume_item, 0, ID2P(LANG_CHANGE_VOLUME), volume, NULL, NULL, Icon_NOICON); -MENUITEM_FUNCTION(shuffle_item, 0, "Enable/Disable Shuffle", +MENUITEM_FUNCTION(shuffle_item, 0, ID2P(LANG_CHANGE_SHUFFLE_MODE), shuffle, NULL, NULL, Icon_NOICON); -MENUITEM_FUNCTION(repeat_mode_item, 0, "Change Repeat Mode", +MENUITEM_FUNCTION(repeat_mode_item, 0, ID2P(LANG_CHANGE_REPEAT_MODE), repeat_mode, NULL, NULL, Icon_NOICON); -MAKE_MENU(playback_control_menu, "Playback Control", NULL, Icon_NOICON, +MAKE_MENU(playback_control_menu, ID2P(LANG_PLAYBACK_CONTROL), NULL, Icon_NOICON, &prevtrack_item, &playpause_item, &stop_item, &nexttrack_item, &volume_item, &shuffle_item, &repeat_mode_item); -- cgit v1.2.3