summaryrefslogtreecommitdiff
path: root/apps/plugin.c
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2004-07-27 14:10:48 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2004-07-27 14:10:48 +0000
commitf4f4111536951feed392a6869575ed80ffe87c4d (patch)
tree8fe0b78734d37939ea6a20e1e2f8a867bbb31ad4 /apps/plugin.c
parentde0100fafb1075286f0a7a7390eb6ce8a3fbe1a0 (diff)
downloadrockbox-f4f4111536951feed392a6869575ed80ffe87c4d.zip
rockbox-f4f4111536951feed392a6869575ed80ffe87c4d.tar.gz
rockbox-f4f4111536951feed392a6869575ed80ffe87c4d.tar.bz2
rockbox-f4f4111536951feed392a6869575ed80ffe87c4d.tar.xz
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.c105
1 files changed, 46 insertions, 59 deletions
diff --git a/apps/plugin.c b/apps/plugin.c
index 413caf8..e5a496c 100644
--- a/apps/plugin.c
+++ b/apps/plugin.c
@@ -88,19 +88,25 @@ static const struct plugin_api rockbox_api = {
lcd_puts,
lcd_puts_scroll,
lcd_stop_scroll,
+ lcd_set_contrast,
#ifdef HAVE_LCD_CHARCELLS
lcd_define_pattern,
lcd_get_locked_pattern,
lcd_unlock_pattern,
lcd_putc,
+ lcd_put_cursor,
+ lcd_remove_cursor,
+ lcd_icon,
#else
lcd_putsxy,
+ lcd_puts_style,
lcd_bitmap,
lcd_drawline,
lcd_clearline,
lcd_drawpixel,
lcd_clearpixel,
lcd_setfont,
+ font_get,
lcd_clearrect,
lcd_fillrect,
lcd_drawrect,
@@ -109,14 +115,21 @@ static const struct plugin_api rockbox_api = {
lcd_update,
lcd_update_rect,
scrollbar,
+ checkbox,
+ &lcd_framebuffer[0][0],
+ lcd_blit,
#ifndef SIMULATOR
lcd_roll,
#endif
#endif
+ backlight_on,
+ backlight_off,
/* button */
button_get,
button_get_w_tmo,
+ button_status,
+ button_clear_queue,
/* file */
(open_func)PREFIX(open),
@@ -131,6 +144,7 @@ static const struct plugin_api rockbox_api = {
PREFIX(filesize),
fprintf,
read_line,
+ settings_parseline,
/* dir */
PREFIX(opendir),
@@ -139,14 +153,21 @@ static const struct plugin_api rockbox_api = {
/* kernel */
PREFIX(sleep),
+ yield,
usb_screen,
&current_tick,
+ default_event_handler,
+ create_thread,
+ remove_thread,
/* strings and memory */
snprintf,
strcpy,
+ strncpy,
strlen,
strrchr,
+ strcmp,
+ strcasecmp,
memset,
memcpy,
#ifndef SIMULATOR
@@ -154,12 +175,31 @@ static const struct plugin_api rockbox_api = {
#endif
/* sound */
+ mpeg_sound_set,
#ifndef SIMULATOR
+ mp3_play_data,
+ mp3_play_pause,
+ mp3_play_stop,
+ mp3_is_playing,
+ bitswap,
#ifdef HAVE_MAS3587F
mas_codec_readreg,
#endif
#endif
+ /* playback control */
+ mpeg_play,
+ mpeg_stop,
+ mpeg_pause,
+ mpeg_resume,
+ mpeg_next,
+ mpeg_prev,
+ mpeg_ff_rewind,
+ mpeg_next_track,
+ playlist_amount,
+ mpeg_status,
+ mpeg_has_changed_track,
+
/* misc */
srand,
rand,
@@ -170,54 +210,21 @@ static const struct plugin_api rockbox_api = {
atoi,
get_time,
plugin_get_buffer,
+ plugin_get_mp3_buffer,
+#ifndef SIMULATOR
+ plugin_register_timer,
+ plugin_unregister_timer,
+#endif
+ plugin_tsr,
/* new stuff at the end, sort into place next time the API gets incompatible */
-#ifndef HAVE_LCD_CHARCELLS
- &lcd_framebuffer[0][0],
- lcd_blit,
-#endif
- yield,
- plugin_get_mp3_buffer,
- mpeg_sound_set,
-#ifndef SIMULATOR
- mp3_play_data,
- mp3_play_pause,
- mp3_play_stop,
- mp3_is_playing,
- bitswap,
-#endif
&global_settings,
backlight_set_timeout,
#ifndef SIMULATOR
ata_sleep,
#endif
-#ifdef HAVE_LCD_BITMAP
- checkbox,
-#endif
-#ifndef SIMULATOR
- plugin_register_timer,
- plugin_unregister_timer,
-#endif
- plugin_tsr,
- create_thread,
- remove_thread,
- lcd_set_contrast,
- mpeg_play,
- mpeg_stop,
- mpeg_pause,
- mpeg_resume,
- mpeg_next,
- mpeg_prev,
- mpeg_ff_rewind,
- mpeg_next_track,
- playlist_amount,
- mpeg_status,
- mpeg_has_changed_track,
-#ifdef HAVE_LCD_BITMAP
- font_get,
-#endif
#if defined(DEBUG) || defined(SIMULATOR)
debugf,
#endif
@@ -238,26 +245,6 @@ static const struct plugin_api rockbox_api = {
set_time,
reset_poweroff_timer,
- backlight_on,
- backlight_off,
-
-#ifdef HAVE_LCD_CHARCELLS
- lcd_icon,
-#endif
-#ifdef HAVE_LCD_BITMAP
- lcd_puts_style,
-#endif
-#ifdef HAVE_LCD_CHARCELLS
- lcd_put_cursor,
- lcd_remove_cursor,
-#endif
- settings_parseline,
- strcmp,
- button_status,
- button_clear_queue,
- strncpy,
- strcasecmp,
- default_event_handler
};
int plugin_load(char* plugin, void* parameter)