diff options
author | Nils Wallménius <nils@rockbox.org> | 2007-03-11 21:48:20 +0000 |
---|---|---|
committer | Nils Wallménius <nils@rockbox.org> | 2007-03-11 21:48:20 +0000 |
commit | 6485db3b37c95ed8b58215193ab656b4655827d4 (patch) | |
tree | 7ece0e31617f0a8c962f37efedcf092a72944189 | |
parent | 7293da9303eb93f2ed7455185d3cb12523f029ed (diff) | |
download | rockbox-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
-rw-r--r-- | apps/gui/quickscreen.c | 21 | ||||
-rw-r--r-- | 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, | |||
43 | qs->callback=callback; | 43 | qs->callback=callback; |
44 | } | 44 | } |
45 | 45 | ||
46 | void gui_quickscreen_draw(struct gui_quickscreen * qs, struct screen * display) | 46 | /* |
47 | * Draws the quickscreen on a given screen | ||
48 | * - qs : the quickscreen | ||
49 | * - display : the screen to draw on | ||
50 | */ | ||
51 | static void gui_quickscreen_draw(struct gui_quickscreen * qs, struct screen * display) | ||
47 | { | 52 | { |
48 | #define PUTS_CENTER (display->height/2/font_h) | 53 | #define PUTS_CENTER (display->height/2/font_h) |
49 | #define PUTS_BOTTOM (display->height/font_h) | 54 | #define PUTS_BOTTOM (display->height/font_h) |
@@ -120,14 +125,24 @@ void gui_quickscreen_draw(struct gui_quickscreen * qs, struct screen * display) | |||
120 | display->setfont(FONT_UI); | 125 | display->setfont(FONT_UI); |
121 | } | 126 | } |
122 | 127 | ||
123 | void gui_syncquickscreen_draw(struct gui_quickscreen * qs) | 128 | /* |
129 | * Draws the quickscreen on all available screens | ||
130 | * - qs : the quickscreen | ||
131 | */ | ||
132 | static void gui_syncquickscreen_draw(struct gui_quickscreen * qs) | ||
124 | { | 133 | { |
125 | int i; | 134 | int i; |
126 | FOR_NB_SCREENS(i) | 135 | FOR_NB_SCREENS(i) |
127 | gui_quickscreen_draw(qs, &screens[i]); | 136 | gui_quickscreen_draw(qs, &screens[i]); |
128 | } | 137 | } |
129 | 138 | ||
130 | bool gui_quickscreen_do_button(struct gui_quickscreen * qs, int button) | 139 | /* |
140 | * Does the actions associated to the given button if any | ||
141 | * - qs : the quickscreen | ||
142 | * - button : the key we are going to analyse | ||
143 | * returns : true if the button corresponded to an action, false otherwise | ||
144 | */ | ||
145 | static bool gui_quickscreen_do_button(struct gui_quickscreen * qs, int button) | ||
131 | { | 146 | { |
132 | 147 | ||
133 | switch(button) | 148 | 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, | |||
57 | struct option_select *bottom_option, | 57 | struct option_select *bottom_option, |
58 | struct option_select *right_option, | 58 | struct option_select *right_option, |
59 | quickscreen_callback *callback); | 59 | quickscreen_callback *callback); |
60 | /* | ||
61 | * Draws the quickscreen on a given screen | ||
62 | * - qs : the quickscreen | ||
63 | * - display : the screen to draw on | ||
64 | */ | ||
65 | void gui_quickscreen_draw(struct gui_quickscreen * qs, struct screen * display); | ||
66 | |||
67 | /* | ||
68 | * Does the actions associated to the given button if any | ||
69 | * - qs : the quickscreen | ||
70 | * - button : the key we are going to analyse | ||
71 | * returns : true if the button corresponded to an action, false otherwise | ||
72 | */ | ||
73 | bool gui_quickscreen_do_button(struct gui_quickscreen * qs, int button); | ||
74 | 60 | ||
75 | /* | ||
76 | * Draws the quickscreen on all available screens | ||
77 | * - qs : the quickscreen | ||
78 | */ | ||
79 | void gui_syncquickscreen_draw(struct gui_quickscreen * qs); | ||
80 | 61 | ||
81 | /* | 62 | /* |
82 | * Runs the quickscreen on all available screens, if button_enter is released, quits | 63 | * Runs the quickscreen on all available screens, if button_enter is released, quits |