diff options
author | Nicolas Pennequin <nicolas.pennequin@free.fr> | 2007-04-04 14:41:40 +0000 |
---|---|---|
committer | Nicolas Pennequin <nicolas.pennequin@free.fr> | 2007-04-04 14:41:40 +0000 |
commit | ab90d58801e95d01dc286a8919c7d5823d81ec41 (patch) | |
tree | d0ea19647fd72516b00bbeabb04fcc36610f530d /apps/gui/gwps-common.h | |
parent | 15e2aecd8f02d8c693f9413a3669b5be52a728bf (diff) | |
download | rockbox-ab90d58801e95d01dc286a8919c7d5823d81ec41.tar.gz rockbox-ab90d58801e95d01dc286a8919c7d5823d81ec41.zip |
Introducing the WPS tokenizer !
When a WPS file is loaded, it is parsed to an array of tokens, which allows more efficient displaying. More info on the tracker entry : FS #6862.
The parsing code is completely independant and is all in wps_parser.c. The displaying part stays in gwps-common.c.
Debugging code is provided (with the right ifdefs) and is disabled by default.
Overall, the code should be easier to read and maintain. Adding new WPS tags is made quite trivial.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13019 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/gwps-common.h')
-rw-r--r-- | apps/gui/gwps-common.h | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/apps/gui/gwps-common.h b/apps/gui/gwps-common.h index 77bec83951..1203113be1 100644 --- a/apps/gui/gwps-common.h +++ b/apps/gui/gwps-common.h @@ -7,7 +7,7 @@ * \/ \/ \/ \/ \/ * $Id$ * - * Copyright (C) 2002 Björn Stenberg + * Copyright (C) 2007 Nicolas Pennequin * * All files in this archive are subject to the GNU General Public License. * See the file COPYING in the source tree root for full license agreement. @@ -24,16 +24,14 @@ #include "gwps.h" void fade(bool fade_in); -void gui_wps_format(struct wps_data *data); -bool gui_wps_refresh(struct gui_wps *gwps, int ffwd_offset, - unsigned char refresh_mode); bool gui_wps_display(void); void setvol(void); bool update_onvol_change(struct gui_wps * gwps); bool update(struct gui_wps *gwps); bool ffwd_rew(int button); -bool wps_data_preload_tags(struct wps_data *data, char *buf, - const char *bmpdir, size_t bmpdirlen); void display_keylock_text(bool locked); -#endif +bool gui_wps_refresh(struct gui_wps *gwps, + int ffwd_offset, + unsigned char refresh_mode); +#endif |