From 2054627caa7f71c564ce35b4525b6281fcd2cc39 Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Mon, 5 Jan 2009 10:31:19 +0000 Subject: Have the codec thread do callbacks instead of messing with the stack which is much simpler and safer. Remove threads array from plugin API since it now serves no purpose. Up minimum API version and sort. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19684 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugin.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'apps/plugin.c') diff --git a/apps/plugin.c b/apps/plugin.c index 3efd31ccc9..cc0a94bb38 100644 --- a/apps/plugin.c +++ b/apps/plugin.c @@ -71,8 +71,6 @@ static char current_plugin[MAX_PATH]; char *plugin_get_current_filename(void); -extern struct thread_entry threads[MAXTHREADS]; - static const struct plugin_api rockbox_api = { /* lcd */ @@ -293,11 +291,14 @@ static const struct plugin_api rockbox_api = { ¤t_tick, default_event_handler, default_event_handler_ex, - threads, create_thread, thread_exit, thread_wait, #if (CONFIG_CODEC == SWCODEC) + thread_thaw, +#ifdef HAVE_PRIORITY_SCHEDULING + thread_set_priority, +#endif mutex_init, mutex_lock, mutex_unlock, @@ -544,6 +545,7 @@ static const struct plugin_api rockbox_api = { &global_status, talk_disable, #if CONFIG_CODEC == SWCODEC + codec_thread_do_callback, codec_load_file, get_codec_filename, get_metadata, @@ -611,8 +613,6 @@ static const struct plugin_api rockbox_api = { search_albumart_files, #endif - thread_thaw, - #ifdef HAVE_SEMAPHORE_OBJECTS semaphore_init, semaphore_wait, -- cgit v1.2.3