diff options
| author | Michael Sevakis <jethead71@rockbox.org> | 2009-01-05 10:31:19 +0000 |
|---|---|---|
| committer | Michael Sevakis <jethead71@rockbox.org> | 2009-01-05 10:31:19 +0000 |
| commit | 2054627caa7f71c564ce35b4525b6281fcd2cc39 (patch) | |
| tree | 2b0aa3b9b8888c4746b75d4750d90f79552159ee /apps/plugin.c | |
| parent | 45aa9a22f9a3e08505cc2f2999459d249356ed9c (diff) | |
| download | rockbox-2054627caa7f71c564ce35b4525b6281fcd2cc39.zip rockbox-2054627caa7f71c564ce35b4525b6281fcd2cc39.tar.gz rockbox-2054627caa7f71c564ce35b4525b6281fcd2cc39.tar.bz2 rockbox-2054627caa7f71c564ce35b4525b6281fcd2cc39.tar.xz | |
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
Diffstat (limited to 'apps/plugin.c')
| -rw-r--r-- | apps/plugin.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/plugin.c b/apps/plugin.c index 3efd31c..cc0a94b 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, |