summaryrefslogtreecommitdiff
path: root/apps/gui/gwps-common.h
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2009-03-23 03:08:56 +0000
committerThomas Martitz <kugel@rockbox.org>2009-03-23 03:08:56 +0000
commitced2724f7d513ea19ab7a0eb0a17647b81b08e4e (patch)
tree88193782f42f971950e321a331f2387757affccb /apps/gui/gwps-common.h
parenta3cbb57b098e627e6a87a837b2c1c749b7c50121 (diff)
downloadrockbox-ced2724f7d513ea19ab7a0eb0a17647b81b08e4e.tar.gz
rockbox-ced2724f7d513ea19ab7a0eb0a17647b81b08e4e.zip
Another wps rework:
*rename gui_wps_refresh() to gui_wps_redraw() and update() to gui_wps_update() to better describe what they do *Clear things up and differentiate better between gui_wps_redraw()/gui_wps_display()/gui_wps_update() (it wasn't so what they're supposed to do before) *cleanup gui_wps_display() and gui_wps_update() quite a bit *Remove unused/unneeded code, do some pointer copying to save binsize, and code cleanup at several places Visible changes should be small git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20483 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/gwps-common.h')
-rw-r--r--apps/gui/gwps-common.h19
1 files changed, 15 insertions, 4 deletions
diff --git a/apps/gui/gwps-common.h b/apps/gui/gwps-common.h
index 25ce435592..8752c1d162 100644
--- a/apps/gui/gwps-common.h
+++ b/apps/gui/gwps-common.h
@@ -25,14 +25,25 @@
25 25
26#include "gwps.h" 26#include "gwps.h"
27 27
28/* fades the volume, e.g. on pause or stop */
28void fade(bool fade_in, bool updatewps); 29void fade(bool fade_in, bool updatewps);
29bool gui_wps_display(void); 30
31/* Initially display the wps, can fall back to the build-in wps
32 * if the chosen wps is invalid */
33bool gui_wps_display(struct gui_wps *gui_wps);
34
35/* return true if screen restore is needed
36 return false otherwise */
30bool update_onvol_change(struct gui_wps * gwps); 37bool update_onvol_change(struct gui_wps * gwps);
31bool update(struct gui_wps *gwps); 38
39/* Update track info related stuff, handles cue sheets as well, and redraw */
40bool gui_wps_update(struct gui_wps *gwps);
41
32bool ffwd_rew(int button); 42bool ffwd_rew(int button);
33void display_keylock_text(bool locked); 43void display_keylock_text(bool locked);
34 44
35bool gui_wps_refresh(struct gui_wps *gwps, 45/* Refresh the WPS according to refresh_mode. */
46bool gui_wps_redraw(struct gui_wps *gwps,
36 int ffwd_offset, 47 int ffwd_offset,
37 unsigned char refresh_mode); 48 unsigned refresh_mode);
38#endif 49#endif