diff options
author | Daniel Stenberg <daniel@haxx.se> | 2005-11-18 09:03:25 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2005-11-18 09:03:25 +0000 |
commit | 09fce707c117aa4006ca30a5a0bf9eb7a89e2caa (patch) | |
tree | 9345d5f6d7d06e122520347a3d9fa3127d3bd4fe /apps/gui/gwps.h | |
parent | fe2c40aedb514126605d5c370ad9792cceadac57 (diff) |
Missing file headers put back. Code within 80 cols. Code policed indenting
and style. Simplified struct levels. #if 0'ed unused functions. Made private
stuff static.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7954 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/gwps.h')
-rw-r--r-- | apps/gui/gwps.h | 27 |
1 files changed, 10 insertions, 17 deletions
diff --git a/apps/gui/gwps.h b/apps/gui/gwps.h index b5fddd556f..d8cc6a78c0 100644 --- a/apps/gui/gwps.h +++ b/apps/gui/gwps.h @@ -145,7 +145,7 @@ #define WPS_INCVOL BUTTON_UP #define WPS_DECVOL BUTTON_DOWN #define WPS_PAUSE BUTTON_OFF -/* #define WPS_MENU Ondio can't have both main menu and context menu in wps */ +/* #define WPS_MENU Ondio can't have both main menu and context menu in wps */ #define WPS_BROWSE (BUTTON_MENU | BUTTON_REL) #define WPS_BROWSE_PRE BUTTON_MENU #define WPS_KEYLOCK (BUTTON_MENU | BUTTON_DOWN) @@ -183,7 +183,7 @@ #define WPS_INCVOL BUTTON_UP #define WPS_DECVOL BUTTON_DOWN #define WPS_PAUSE BUTTON_OFF -/* #define WPS_MENU iPod can't have both main menu and context menu in wps */ +/* #define WPS_MENU iPod can't have both main menu and context menu in wps */ #define WPS_BROWSE (BUTTON_MENU | BUTTON_REL) #define WPS_BROWSE_PRE BUTTON_MENU #define WPS_KEYLOCK (BUTTON_MENU | BUTTON_DOWN) @@ -253,6 +253,8 @@ struct wps_data #ifdef HAVE_LCD_BITMAP struct gui_img img[MAX_IMAGES]; unsigned char img_buf[IMG_BUFSIZE]; + bool wps_sb_tag; + bool show_sb_on_wps; #endif #ifdef HAVE_LCD_CHARCELLS unsigned char wps_progress_pat[8]; @@ -274,7 +276,10 @@ void wps_data_init(struct wps_data *wps_data); /* to setup up the wps-data from a format-buffer (isfile = false) from a (wps-)file (isfile = true)*/ -bool wps_data_load(struct wps_data *wps_data, const char *buf, bool isfile, bool display); +bool wps_data_load(struct wps_data *wps_data, + const char *buf, + bool isfile, + bool display); /* wps_data end */ @@ -301,13 +306,6 @@ void wps_state_init(void); else we are in normal mode */ void wps_state_update_ff_rew(bool ff_rew); -/* change the paused-status - to indicate if playback is currently paused or not */ -void wps_state_update_paused(bool paused); - -/* change the path to the current played track */ -void wps_state_update_ctp(const char *path); - /* change the tag-information of the current played track and the following track */ void wps_state_update_id3_nid3(struct mp3entry *id3, struct mp3entry *nid3); @@ -318,7 +316,7 @@ void wps_state_update_id3_nid3(struct mp3entry *id3, struct mp3entry *nid3); and the screen on which the wps-content should be drawn */ struct gui_wps { - struct screen * display; + struct screen * display; struct wps_data *data; struct wps_state *state; }; @@ -333,16 +331,11 @@ void gui_wps_set_data(struct gui_wps *gui_wps, struct wps_data *data); void gui_wps_set_disp(struct gui_wps *gui_wps, struct screen *display); /* gui_wps end */ -struct gui_syncwps -{ - struct gui_wps gui_wps[NB_SCREENS]; -}; long gui_wps_show(void); /* currently only on wps_state is needed */ extern struct wps_state wps_state; -extern struct gui_syncwps gui_syncwps; -extern struct wps_data wps_datas[NB_SCREENS]; +extern struct gui_wps gui_wps[NB_SCREENS]; void gui_sync_wps_init(void); void gui_sync_data_wps_init(void); |