mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 13:12:37 -05:00
list: Flag simplelist_addline() as accepting format specifiers
And fix up all the problems I've found so far. ...This will undoubtedly introduce a pile of new warnings. Change-Id: I868de507a0e9790f289676c198e2977c26755f22
This commit is contained in:
parent
d3b7eba405
commit
a2efbf0589
2 changed files with 21 additions and 21 deletions
|
|
@ -134,7 +134,7 @@ struct list_selection_color
|
|||
unsigned bg_color;
|
||||
/* To enable:
|
||||
* call gui_synclist_set_sel_color(gui_synclist*, list_selection_color*)
|
||||
* If using the default viewport you should call
|
||||
* If using the default viewport you should call
|
||||
* gui_synclist_set_sel_color(gui_synclist*, NULL) when finished */
|
||||
};
|
||||
#endif
|
||||
|
|
@ -264,8 +264,8 @@ extern bool list_do_action(int context, int timeout,
|
|||
|
||||
|
||||
/** Simplelist implementation.
|
||||
USe this if you dont need to reimplement the list code,
|
||||
and just need to show a list
|
||||
USe this if you dont need to reimplement the list code,
|
||||
and just need to show a list
|
||||
**/
|
||||
|
||||
struct simplelist_info {
|
||||
|
|
@ -282,7 +282,7 @@ struct simplelist_info {
|
|||
was exited with ACTION_STD_CANCEL */
|
||||
int (*action_callback)(int action, struct gui_synclist *lists); /* can be NULL */
|
||||
/* action_callback notes:
|
||||
action == the action pressed by the user
|
||||
action == the action pressed by the user
|
||||
_after_ gui_synclist_do_button returns.
|
||||
lists == the lists struct so the callback can get selection and count etc. */
|
||||
enum themable_icons title_icon;
|
||||
|
|
@ -312,7 +312,7 @@ void simplelist_set_line_count(int lines);
|
|||
/* get the current amount of lines shown */
|
||||
int simplelist_get_line_count(void);
|
||||
/* add a line in the list. */
|
||||
void simplelist_addline(const char *fmt, ...);
|
||||
void simplelist_addline(const char *fmt, ...) __attribute__((format(printf,1,2)));
|
||||
|
||||
/* setup the info struct. members not setup in this function need to be assigned manually
|
||||
members set in this function:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue