summaryrefslogtreecommitdiffstats
path: root/apps/gui
diff options
context:
space:
mode:
authorNils Wallménius <nils@rockbox.org>2007-03-11 21:48:20 +0000
committerNils Wallménius <nils@rockbox.org>2007-03-11 21:48:20 +0000
commit6485db3b37c95ed8b58215193ab656b4655827d4 (patch)
tree7ece0e31617f0a8c962f37efedcf092a72944189 /apps/gui
parent7293da9303eb93f2ed7455185d3cb12523f029ed (diff)
downloadrockbox-6485db3b37c95ed8b58215193ab656b4655827d4.tar.gz
rockbox-6485db3b37c95ed8b58215193ab656b4655827d4.zip
Make a couple of private functions 'static'
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12729 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui')
-rw-r--r--apps/gui/quickscreen.c21
-rw-r--r--apps/gui/quickscreen.h19
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