diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2004-07-27 14:10:48 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2004-07-27 14:10:48 +0000 |
commit | f4f4111536951feed392a6869575ed80ffe87c4d (patch) | |
tree | 8fe0b78734d37939ea6a20e1e2f8a867bbb31ad4 /apps/plugin.c | |
parent | de0100fafb1075286f0a7a7390eb6ce8a3fbe1a0 (diff) | |
download | rockbox-f4f4111536951feed392a6869575ed80ffe87c4d.tar.gz rockbox-f4f4111536951feed392a6869575ed80ffe87c4d.zip |
Added possibility to select the priority of the ID3 tags
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4962 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugin.c')
-rw-r--r-- | apps/plugin.c | 105 |
1 files changed, 46 insertions, 59 deletions
diff --git a/apps/plugin.c b/apps/plugin.c index 413caf87a1..e5a496c567 100644 --- a/apps/plugin.c +++ b/apps/plugin.c | |||
@@ -88,19 +88,25 @@ static const struct plugin_api rockbox_api = { | |||
88 | lcd_puts, | 88 | lcd_puts, |
89 | lcd_puts_scroll, | 89 | lcd_puts_scroll, |
90 | lcd_stop_scroll, | 90 | lcd_stop_scroll, |
91 | lcd_set_contrast, | ||
91 | #ifdef HAVE_LCD_CHARCELLS | 92 | #ifdef HAVE_LCD_CHARCELLS |
92 | lcd_define_pattern, | 93 | lcd_define_pattern, |
93 | lcd_get_locked_pattern, | 94 | lcd_get_locked_pattern, |
94 | lcd_unlock_pattern, | 95 | lcd_unlock_pattern, |
95 | lcd_putc, | 96 | lcd_putc, |
97 | lcd_put_cursor, | ||
98 | lcd_remove_cursor, | ||
99 | lcd_icon, | ||
96 | #else | 100 | #else |
97 | lcd_putsxy, | 101 | lcd_putsxy, |
102 | lcd_puts_style, | ||
98 | lcd_bitmap, | 103 | lcd_bitmap, |
99 | lcd_drawline, | 104 | lcd_drawline, |
100 | lcd_clearline, | 105 | lcd_clearline, |
101 | lcd_drawpixel, | 106 | lcd_drawpixel, |
102 | lcd_clearpixel, | 107 | lcd_clearpixel, |
103 | lcd_setfont, | 108 | lcd_setfont, |
109 | font_get, | ||
104 | lcd_clearrect, | 110 | lcd_clearrect, |
105 | lcd_fillrect, | 111 | lcd_fillrect, |
106 | lcd_drawrect, | 112 | lcd_drawrect, |
@@ -109,14 +115,21 @@ static const struct plugin_api rockbox_api = { | |||
109 | lcd_update, | 115 | lcd_update, |
110 | lcd_update_rect, | 116 | lcd_update_rect, |
111 | scrollbar, | 117 | scrollbar, |
118 | checkbox, | ||
119 | &lcd_framebuffer[0][0], | ||
120 | lcd_blit, | ||
112 | #ifndef SIMULATOR | 121 | #ifndef SIMULATOR |
113 | lcd_roll, | 122 | lcd_roll, |
114 | #endif | 123 | #endif |
115 | #endif | 124 | #endif |
125 | backlight_on, | ||
126 | backlight_off, | ||
116 | 127 | ||
117 | /* button */ | 128 | /* button */ |
118 | button_get, | 129 | button_get, |
119 | button_get_w_tmo, | 130 | button_get_w_tmo, |
131 | button_status, | ||
132 | button_clear_queue, | ||
120 | 133 | ||
121 | /* file */ | 134 | /* file */ |
122 | (open_func)PREFIX(open), | 135 | (open_func)PREFIX(open), |
@@ -131,6 +144,7 @@ static const struct plugin_api rockbox_api = { | |||
131 | PREFIX(filesize), | 144 | PREFIX(filesize), |
132 | fprintf, | 145 | fprintf, |
133 | read_line, | 146 | read_line, |
147 | settings_parseline, | ||
134 | 148 | ||
135 | /* dir */ | 149 | /* dir */ |
136 | PREFIX(opendir), | 150 | PREFIX(opendir), |
@@ -139,14 +153,21 @@ static const struct plugin_api rockbox_api = { | |||
139 | 153 | ||
140 | /* kernel */ | 154 | /* kernel */ |
141 | PREFIX(sleep), | 155 | PREFIX(sleep), |
156 | yield, | ||
142 | usb_screen, | 157 | usb_screen, |
143 | ¤t_tick, | 158 | ¤t_tick, |
159 | default_event_handler, | ||
160 | create_thread, | ||
161 | remove_thread, | ||
144 | 162 | ||
145 | /* strings and memory */ | 163 | /* strings and memory */ |
146 | snprintf, | 164 | snprintf, |
147 | strcpy, | 165 | strcpy, |
166 | strncpy, | ||
148 | strlen, | 167 | strlen, |
149 | strrchr, | 168 | strrchr, |
169 | strcmp, | ||
170 | strcasecmp, | ||
150 | memset, | 171 | memset, |
151 | memcpy, | 172 | memcpy, |
152 | #ifndef SIMULATOR | 173 | #ifndef SIMULATOR |
@@ -154,12 +175,31 @@ static const struct plugin_api rockbox_api = { | |||
154 | #endif | 175 | #endif |
155 | 176 | ||
156 | /* sound */ | 177 | /* sound */ |
178 | mpeg_sound_set, | ||
157 | #ifndef SIMULATOR | 179 | #ifndef SIMULATOR |
180 | mp3_play_data, | ||
181 | mp3_play_pause, | ||
182 | mp3_play_stop, | ||
183 | mp3_is_playing, | ||
184 | bitswap, | ||
158 | #ifdef HAVE_MAS3587F | 185 | #ifdef HAVE_MAS3587F |
159 | mas_codec_readreg, | 186 | mas_codec_readreg, |
160 | #endif | 187 | #endif |
161 | #endif | 188 | #endif |
162 | 189 | ||
190 | /* playback control */ | ||
191 | mpeg_play, | ||
192 | mpeg_stop, | ||
193 | mpeg_pause, | ||
194 | mpeg_resume, | ||
195 | mpeg_next, | ||
196 | mpeg_prev, | ||
197 | mpeg_ff_rewind, | ||
198 | mpeg_next_track, | ||
199 | playlist_amount, | ||
200 | mpeg_status, | ||
201 | mpeg_has_changed_track, | ||
202 | |||
163 | /* misc */ | 203 | /* misc */ |
164 | srand, | 204 | srand, |
165 | rand, | 205 | rand, |
@@ -170,54 +210,21 @@ static const struct plugin_api rockbox_api = { | |||
170 | atoi, | 210 | atoi, |
171 | get_time, | 211 | get_time, |
172 | plugin_get_buffer, | 212 | plugin_get_buffer, |
213 | plugin_get_mp3_buffer, | ||
214 | #ifndef SIMULATOR | ||
215 | plugin_register_timer, | ||
216 | plugin_unregister_timer, | ||
217 | #endif | ||
218 | plugin_tsr, | ||
173 | 219 | ||
174 | /* new stuff at the end, sort into place next time the API gets incompatible */ | 220 | /* new stuff at the end, sort into place next time the API gets incompatible */ |
175 | 221 | ||
176 | #ifndef HAVE_LCD_CHARCELLS | ||
177 | &lcd_framebuffer[0][0], | ||
178 | lcd_blit, | ||
179 | #endif | ||
180 | yield, | ||
181 | 222 | ||
182 | plugin_get_mp3_buffer, | ||
183 | mpeg_sound_set, | ||
184 | #ifndef SIMULATOR | ||
185 | mp3_play_data, | ||
186 | mp3_play_pause, | ||
187 | mp3_play_stop, | ||
188 | mp3_is_playing, | ||
189 | bitswap, | ||
190 | #endif | ||
191 | &global_settings, | 223 | &global_settings, |
192 | backlight_set_timeout, | 224 | backlight_set_timeout, |
193 | #ifndef SIMULATOR | 225 | #ifndef SIMULATOR |
194 | ata_sleep, | 226 | ata_sleep, |
195 | #endif | 227 | #endif |
196 | #ifdef HAVE_LCD_BITMAP | ||
197 | checkbox, | ||
198 | #endif | ||
199 | #ifndef SIMULATOR | ||
200 | plugin_register_timer, | ||
201 | plugin_unregister_timer, | ||
202 | #endif | ||
203 | plugin_tsr, | ||
204 | create_thread, | ||
205 | remove_thread, | ||
206 | lcd_set_contrast, | ||
207 | mpeg_play, | ||
208 | mpeg_stop, | ||
209 | mpeg_pause, | ||
210 | mpeg_resume, | ||
211 | mpeg_next, | ||
212 | mpeg_prev, | ||
213 | mpeg_ff_rewind, | ||
214 | mpeg_next_track, | ||
215 | playlist_amount, | ||
216 | mpeg_status, | ||
217 | mpeg_has_changed_track, | ||
218 | #ifdef HAVE_LCD_BITMAP | ||
219 | font_get, | ||
220 | #endif | ||
221 | #if defined(DEBUG) || defined(SIMULATOR) | 228 | #if defined(DEBUG) || defined(SIMULATOR) |
222 | debugf, | 229 | debugf, |
223 | #endif | 230 | #endif |
@@ -238,26 +245,6 @@ static const struct plugin_api rockbox_api = { | |||
238 | set_time, | 245 | set_time, |
239 | reset_poweroff_timer, | 246 | reset_poweroff_timer, |
240 | 247 | ||
241 | backlight_on, | ||
242 | backlight_off, | ||
243 | |||
244 | #ifdef HAVE_LCD_CHARCELLS | ||
245 | lcd_icon, | ||
246 | #endif | ||
247 | #ifdef HAVE_LCD_BITMAP | ||
248 | lcd_puts_style, | ||
249 | #endif | ||
250 | #ifdef HAVE_LCD_CHARCELLS | ||
251 | lcd_put_cursor, | ||
252 | lcd_remove_cursor, | ||
253 | #endif | ||
254 | settings_parseline, | ||
255 | strcmp, | ||
256 | button_status, | ||
257 | button_clear_queue, | ||
258 | strncpy, | ||
259 | strcasecmp, | ||
260 | default_event_handler | ||
261 | }; | 248 | }; |
262 | 249 | ||
263 | int plugin_load(char* plugin, void* parameter) | 250 | int plugin_load(char* plugin, void* parameter) |