diff options
author | Dave Chapman <dave@dchapman.com> | 2008-03-21 13:41:35 +0000 |
---|---|---|
committer | Dave Chapman <dave@dchapman.com> | 2008-03-21 13:41:35 +0000 |
commit | e92d2c51ed455cc0a889fb6d38b4802eee252a6a (patch) | |
tree | 028860f37ad61406d82ad036694186dbc9d45360 /apps/misc.h | |
parent | bb026334c020bb04839186e7a45bac1dc7cb1724 (diff) | |
download | rockbox-e92d2c51ed455cc0a889fb6d38b4802eee252a6a.tar.gz rockbox-e92d2c51ed455cc0a889fb6d38b4802eee252a6a.zip |
Add a general-purpose parse_list function to parse a string containing a delimited list of items and adapt the parse_image_load() function in the WPS parser to use it. This function will also be used to parse the upcoming WPS %V viewport tag, but I'm committing it separately as these changes are unrelated to the viewport implementation itself.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16728 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/misc.h')
-rw-r--r-- | apps/misc.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/misc.h b/apps/misc.h index 289d952afb..c6a91646b8 100644 --- a/apps/misc.h +++ b/apps/misc.h | |||
@@ -110,7 +110,7 @@ void check_bootfile(bool do_rolo); | |||
110 | void setvol(void); | 110 | void setvol(void); |
111 | 111 | ||
112 | #ifdef HAVE_LCD_COLOR | 112 | #ifdef HAVE_LCD_COLOR |
113 | int hex_to_rgb(const char* hex); | 113 | int hex_to_rgb(const char* hex, int* color); |
114 | #endif | 114 | #endif |
115 | 115 | ||
116 | char* strrsplt(char* str, int c); | 116 | char* strrsplt(char* str, int c); |
@@ -124,4 +124,7 @@ bool dir_exists(const char *path); | |||
124 | */ | 124 | */ |
125 | char *strip_extension(char* buffer, int buffer_size, const char *filename); | 125 | char *strip_extension(char* buffer, int buffer_size, const char *filename); |
126 | 126 | ||
127 | /* A simplified scanf */ | ||
128 | const char* parse_list(const char *fmt, const char sep, const char* str, ...); | ||
129 | |||
127 | #endif /* MISC_H */ | 130 | #endif /* MISC_H */ |