diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2013-02-12 20:35:11 +1100 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2013-02-12 21:01:13 +1100 |
commit | 69228f92dbddc9940166c0d7af2b4c79d55f85e7 (patch) | |
tree | 20ce322d2eea9dc1f1d35364ec7bf137a74ab03f /apps/gui/list.h | |
parent | e41aed633f6d76b670c4808413e6633b50a654f8 (diff) | |
download | rockbox-69228f92dbddc9940166c0d7af2b4c79d55f85e7.tar.gz rockbox-69228f92dbddc9940166c0d7af2b4c79d55f85e7.zip |
simplelist: Make better use of the static buffer and simplify API
Change-Id: I1327fcd01d6f817be6c7018d30d33446c9b57287
Diffstat (limited to 'apps/gui/list.h')
-rw-r--r-- | apps/gui/list.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/apps/gui/list.h b/apps/gui/list.h index 162bb38e1a..8980573aa3 100644 --- a/apps/gui/list.h +++ b/apps/gui/list.h | |||
@@ -265,10 +265,8 @@ struct simplelist_info { | |||
265 | void simplelist_set_line_count(int lines); | 265 | void simplelist_set_line_count(int lines); |
266 | /* get the current amount of lines shown */ | 266 | /* get the current amount of lines shown */ |
267 | int simplelist_get_line_count(void); | 267 | int simplelist_get_line_count(void); |
268 | /* add/edit a line in the list. | 268 | /* add a line in the list. */ |
269 | if line_number > number of lines shown it adds the line, else it edits the line */ | 269 | void simplelist_addline(const char *fmt, ...); |
270 | #define SIMPLELIST_ADD_LINE (SIMPLELIST_MAX_LINES+1) | ||
271 | void simplelist_addline(int line_number, const char *fmt, ...); | ||
272 | 270 | ||
273 | /* setup the info struct. members not setup in this function need to be assigned manually | 271 | /* setup the info struct. members not setup in this function need to be assigned manually |
274 | members set in this function: | 272 | members set in this function: |