summaryrefslogtreecommitdiff
path: root/apps/plugins/lib/playback_control.c
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2019-02-03 20:12:50 -0500
committerWilliam Wilgus <me.theuser@yahoo.com>2019-07-20 08:48:35 +0200
commit55eb1c54ebe33faa8b1eb8c527d5644961ca78dc (patch)
tree81b5a4f89cfc867bc73901c7cccffc89baf3c3ff /apps/plugins/lib/playback_control.c
parent9c17734394177791d1101e31aed7537c81e610b6 (diff)
downloadrockbox-55eb1c54ebe33faa8b1eb8c527d5644961ca78dc.tar.gz
rockbox-55eb1c54ebe33faa8b1eb8c527d5644961ca78dc.zip
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
Diffstat (limited to 'apps/plugins/lib/playback_control.c')
-rw-r--r--apps/plugins/lib/playback_control.c16
1 files changed, 8 insertions, 8 deletions
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)
90 90
91 return false; 91 return false;
92} 92}
93MENUITEM_FUNCTION(prevtrack_item, 0, "Previous Track", 93MENUITEM_FUNCTION(prevtrack_item, 0, ID2P(LANG_PREVTRACK),
94 prevtrack, NULL, NULL, Icon_NOICON); 94 prevtrack, NULL, NULL, Icon_NOICON);
95MENUITEM_FUNCTION(playpause_item, 0, "Pause / Play", 95MENUITEM_FUNCTION(playpause_item, 0, ID2P(LANG_PLAYPAUSE),
96 play, NULL, NULL, Icon_NOICON); 96 play, NULL, NULL, Icon_NOICON);
97MENUITEM_FUNCTION(stop_item, 0, "Stop Playback", 97MENUITEM_FUNCTION(stop_item, 0, ID2P(LANG_STOP_PLAYBACK),
98 stop, NULL, NULL, Icon_NOICON); 98 stop, NULL, NULL, Icon_NOICON);
99MENUITEM_FUNCTION(nexttrack_item, 0, "Next Track", 99MENUITEM_FUNCTION(nexttrack_item, 0, ID2P(LANG_NEXTTRACK),
100 nexttrack, NULL, NULL, Icon_NOICON); 100 nexttrack, NULL, NULL, Icon_NOICON);
101MENUITEM_FUNCTION(volume_item, 0, "Change Volume", 101MENUITEM_FUNCTION(volume_item, 0, ID2P(LANG_CHANGE_VOLUME),
102 volume, NULL, NULL, Icon_NOICON); 102 volume, NULL, NULL, Icon_NOICON);
103MENUITEM_FUNCTION(shuffle_item, 0, "Enable/Disable Shuffle", 103MENUITEM_FUNCTION(shuffle_item, 0, ID2P(LANG_CHANGE_SHUFFLE_MODE),
104 shuffle, NULL, NULL, Icon_NOICON); 104 shuffle, NULL, NULL, Icon_NOICON);
105MENUITEM_FUNCTION(repeat_mode_item, 0, "Change Repeat Mode", 105MENUITEM_FUNCTION(repeat_mode_item, 0, ID2P(LANG_CHANGE_REPEAT_MODE),
106 repeat_mode, NULL, NULL, Icon_NOICON); 106 repeat_mode, NULL, NULL, Icon_NOICON);
107MAKE_MENU(playback_control_menu, "Playback Control", NULL, Icon_NOICON, 107MAKE_MENU(playback_control_menu, ID2P(LANG_PLAYBACK_CONTROL), NULL, Icon_NOICON,
108 &prevtrack_item, &playpause_item, &stop_item, &nexttrack_item, 108 &prevtrack_item, &playpause_item, &stop_item, &nexttrack_item,
109 &volume_item, &shuffle_item, &repeat_mode_item); 109 &volume_item, &shuffle_item, &repeat_mode_item);
110 110