From 6485db3b37c95ed8b58215193ab656b4655827d4 Mon Sep 17 00:00:00 2001 From: Nils Wallménius Date: Sun, 11 Mar 2007 21:48:20 +0000 Subject: Make a couple of private functions 'static' git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12729 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/quickscreen.c | 21 ++++++++++++++++++--- apps/gui/quickscreen.h | 19 ------------------- 2 files changed, 18 insertions(+), 22 deletions(-) diff --git a/apps/gui/quickscreen.c b/apps/gui/quickscreen.c index 8a6c51e8c7..cda6e7aa51 100644 --- a/apps/gui/quickscreen.c +++ b/apps/gui/quickscreen.c @@ -43,7 +43,12 @@ void gui_quickscreen_init(struct gui_quickscreen * qs, qs->callback=callback; } -void gui_quickscreen_draw(struct gui_quickscreen * qs, struct screen * display) +/* + * Draws the quickscreen on a given screen + * - qs : the quickscreen + * - display : the screen to draw on + */ +static void gui_quickscreen_draw(struct gui_quickscreen * qs, struct screen * display) { #define PUTS_CENTER (display->height/2/font_h) #define PUTS_BOTTOM (display->height/font_h) @@ -120,14 +125,24 @@ void gui_quickscreen_draw(struct gui_quickscreen * qs, struct screen * display) display->setfont(FONT_UI); } -void gui_syncquickscreen_draw(struct gui_quickscreen * qs) +/* + * Draws the quickscreen on all available screens + * - qs : the quickscreen + */ +static void gui_syncquickscreen_draw(struct gui_quickscreen * qs) { int i; FOR_NB_SCREENS(i) gui_quickscreen_draw(qs, &screens[i]); } -bool gui_quickscreen_do_button(struct gui_quickscreen * qs, int button) +/* + * Does the actions associated to the given button if any + * - qs : the quickscreen + * - button : the key we are going to analyse + * returns : true if the button corresponded to an action, false otherwise + */ +static bool gui_quickscreen_do_button(struct gui_quickscreen * qs, int button) { switch(button) diff --git a/apps/gui/quickscreen.h b/apps/gui/quickscreen.h index ebc7cef61a..179d619883 100644 --- a/apps/gui/quickscreen.h +++ b/apps/gui/quickscreen.h @@ -57,26 +57,7 @@ void gui_quickscreen_init(struct gui_quickscreen * qs, struct option_select *bottom_option, struct option_select *right_option, quickscreen_callback *callback); -/* - * Draws the quickscreen on a given screen - * - qs : the quickscreen - * - display : the screen to draw on - */ -void gui_quickscreen_draw(struct gui_quickscreen * qs, struct screen * display); - -/* - * Does the actions associated to the given button if any - * - qs : the quickscreen - * - button : the key we are going to analyse - * returns : true if the button corresponded to an action, false otherwise - */ -bool gui_quickscreen_do_button(struct gui_quickscreen * qs, int button); -/* - * Draws the quickscreen on all available screens - * - qs : the quickscreen - */ -void gui_syncquickscreen_draw(struct gui_quickscreen * qs); /* * Runs the quickscreen on all available screens, if button_enter is released, quits -- cgit v1.2.3