From fea4689e91139ed92f2acad3c3c30afcbf1c1794 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Fri, 15 Jan 2010 07:20:56 +0000 Subject: Get rid of those horrible macros to protect against NULL reference when looking up the id3 info for tokens. Change the way the wps playlist viewer gets the token values. All %i tokens are now supported (and a few others, experiment :) ) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24233 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/skin_engine/wps_internals.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'apps/gui/skin_engine/wps_internals.h') diff --git a/apps/gui/skin_engine/wps_internals.h b/apps/gui/skin_engine/wps_internals.h index 362f3947e7..837e56eab1 100644 --- a/apps/gui/skin_engine/wps_internals.h +++ b/apps/gui/skin_engine/wps_internals.h @@ -358,6 +358,8 @@ const char *get_token_value(struct gui_wps *gwps, char *buf, int buf_size, int *intval); +const char *get_id3_token(struct wps_token *token, struct mp3entry *id3, + char *buf, int buf_size, int limit, int *intval); struct gui_img* find_image(char label, struct wps_data *data); -- cgit v1.2.3