From 69228f92dbddc9940166c0d7af2b4c79d55f85e7 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Tue, 12 Feb 2013 20:35:11 +1100 Subject: simplelist: Make better use of the static buffer and simplify API Change-Id: I1327fcd01d6f817be6c7018d30d33446c9b57287 --- apps/gui/list.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'apps/gui/list.h') 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: -- cgit v1.1