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.zip rockbox-69228f92dbddc9940166c0d7af2b4c79d55f85e7.tar.gz rockbox-69228f92dbddc9940166c0d7af2b4c79d55f85e7.tar.bz2 rockbox-69228f92dbddc9940166c0d7af2b4c79d55f85e7.tar.xz | |
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 162bb38..8980573 100644 --- a/apps/gui/list.h +++ b/apps/gui/list.h @@ -265,10 +265,8 @@ struct simplelist_info { void simplelist_set_line_count(int lines); /* get the current amount of lines shown */ int simplelist_get_line_count(void); -/* add/edit a line in the list. - if line_number > number of lines shown it adds the line, else it edits the line */ -#define SIMPLELIST_ADD_LINE (SIMPLELIST_MAX_LINES+1) -void simplelist_addline(int line_number, const char *fmt, ...); +/* add a line in the list. */ +void simplelist_addline(const char *fmt, ...); /* setup the info struct. members not setup in this function need to be assigned manually members set in this function: |