From 70de4ec4c9183080846a4e0e2591fcd4850832d3 Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Tue, 27 Jul 2004 19:16:58 +0000 Subject: Sorted the plugin functions git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4963 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugin.c | 52 +++++++++++++++++++++++++--------------------------- 1 file changed, 25 insertions(+), 27 deletions(-) (limited to 'apps/plugin.c') diff --git a/apps/plugin.c b/apps/plugin.c index e5a496c567..dc7351de5a 100644 --- a/apps/plugin.c +++ b/apps/plugin.c @@ -124,6 +124,7 @@ static const struct plugin_api rockbox_api = { #endif backlight_on, backlight_off, + splash, /* button */ button_get, @@ -145,6 +146,9 @@ static const struct plugin_api rockbox_api = { fprintf, read_line, settings_parseline, +#ifndef SIMULATOR + ata_sleep, +#endif /* dir */ PREFIX(opendir), @@ -159,6 +163,7 @@ static const struct plugin_api rockbox_api = { default_event_handler, create_thread, remove_thread, + reset_poweroff_timer, /* strings and memory */ snprintf, @@ -173,6 +178,7 @@ static const struct plugin_api rockbox_api = { #ifndef SIMULATOR _ctype_, #endif + atoi, /* sound */ mpeg_sound_set, @@ -182,9 +188,6 @@ static const struct plugin_api rockbox_api = { mp3_play_stop, mp3_is_playing, bitswap, -#ifdef HAVE_MAS3587F - mas_codec_readreg, -#endif #endif /* playback control */ @@ -199,16 +202,27 @@ static const struct plugin_api rockbox_api = { playlist_amount, mpeg_status, mpeg_has_changed_track, + mpeg_current_track, + + /* MAS communication */ +#ifndef SIMULATOR + mas_readmem, + mas_writemem, + mas_readreg, + mas_writereg, +#ifdef HAVE_MAS3587F + mas_codec_writereg, + mas_codec_readreg, +#endif +#endif /* misc */ srand, rand, - splash, (qsort_func)qsort, kbd_input, - mpeg_current_track, - atoi, get_time, + set_time, plugin_get_buffer, plugin_get_mp3_buffer, #ifndef SIMULATOR @@ -216,34 +230,18 @@ static const struct plugin_api rockbox_api = { plugin_unregister_timer, #endif plugin_tsr, - - /* new stuff at the end, sort into place next time the API gets incompatible */ - - - &global_settings, - backlight_set_timeout, -#ifndef SIMULATOR - ata_sleep, -#endif #if defined(DEBUG) || defined(SIMULATOR) debugf, #endif + &global_settings, + backlight_set_timeout, mp3info, count_mp3_frames, create_xing_header, - -#ifndef SIMULATOR - mas_readmem, - mas_writemem, - mas_readreg, - mas_writereg, -#ifdef HAVE_MAS3587F - mas_codec_writereg, -#endif -#endif battery_level, - set_time, - reset_poweroff_timer, + + /* new stuff at the end, sort into place next time + the API gets incompatible */ }; -- cgit v1.2.3