summaryrefslogtreecommitdiff
path: root/apps/plugin.c
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2009-01-05 10:31:19 +0000
committerMichael Sevakis <jethead71@rockbox.org>2009-01-05 10:31:19 +0000
commit2054627caa7f71c564ce35b4525b6281fcd2cc39 (patch)
tree2b0aa3b9b8888c4746b75d4750d90f79552159ee /apps/plugin.c
parent45aa9a22f9a3e08505cc2f2999459d249356ed9c (diff)
downloadrockbox-2054627caa7f71c564ce35b4525b6281fcd2cc39.tar.gz
rockbox-2054627caa7f71c564ce35b4525b6281fcd2cc39.zip
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.c10
1 files changed, 5 insertions, 5 deletions
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];
71 71
72char *plugin_get_current_filename(void); 72char *plugin_get_current_filename(void);
73 73
74extern struct thread_entry threads[MAXTHREADS];
75
76static const struct plugin_api rockbox_api = { 74static const struct plugin_api rockbox_api = {
77 75
78 /* lcd */ 76 /* lcd */
@@ -293,11 +291,14 @@ static const struct plugin_api rockbox_api = {
293 &current_tick, 291 &current_tick,
294 default_event_handler, 292 default_event_handler,
295 default_event_handler_ex, 293 default_event_handler_ex,
296 threads,
297 create_thread, 294 create_thread,
298 thread_exit, 295 thread_exit,
299 thread_wait, 296 thread_wait,
300#if (CONFIG_CODEC == SWCODEC) 297#if (CONFIG_CODEC == SWCODEC)
298 thread_thaw,
299#ifdef HAVE_PRIORITY_SCHEDULING
300 thread_set_priority,
301#endif
301 mutex_init, 302 mutex_init,
302 mutex_lock, 303 mutex_lock,
303 mutex_unlock, 304 mutex_unlock,
@@ -544,6 +545,7 @@ static const struct plugin_api rockbox_api = {
544 &global_status, 545 &global_status,
545 talk_disable, 546 talk_disable,
546#if CONFIG_CODEC == SWCODEC 547#if CONFIG_CODEC == SWCODEC
548 codec_thread_do_callback,
547 codec_load_file, 549 codec_load_file,
548 get_codec_filename, 550 get_codec_filename,
549 get_metadata, 551 get_metadata,
@@ -611,8 +613,6 @@ static const struct plugin_api rockbox_api = {
611 search_albumart_files, 613 search_albumart_files,
612#endif 614#endif
613 615
614 thread_thaw,
615
616#ifdef HAVE_SEMAPHORE_OBJECTS 616#ifdef HAVE_SEMAPHORE_OBJECTS
617 semaphore_init, 617 semaphore_init,
618 semaphore_wait, 618 semaphore_wait,