diff options
Diffstat (limited to 'apps/plugin.c')
-rw-r--r-- | apps/plugin.c | 62 |
1 files changed, 25 insertions, 37 deletions
diff --git a/apps/plugin.c b/apps/plugin.c index 3a893fc537..1fbae6284a 100644 --- a/apps/plugin.c +++ b/apps/plugin.c | |||
@@ -7,7 +7,7 @@ | |||
7 | * \/ \/ \/ \/ \/ | 7 | * \/ \/ \/ \/ \/ |
8 | * $Id$ | 8 | * $Id$ |
9 | * | 9 | * |
10 | * Copyright (C) 2002 Bj�n Stenberg | 10 | * Copyright (C) 2002 Björn Stenberg |
11 | * | 11 | * |
12 | * All files in this archive are subject to the GNU General Public License. | 12 | * All files in this archive are subject to the GNU General Public License. |
13 | * See the file COPYING in the source tree root for full license agreement. | 13 | * See the file COPYING in the source tree root for full license agreement. |
@@ -16,63 +16,30 @@ | |||
16 | * KIND, either express or implied. | 16 | * KIND, either express or implied. |
17 | * | 17 | * |
18 | ****************************************************************************/ | 18 | ****************************************************************************/ |
19 | #include <stdbool.h> | 19 | #include "plugin.h" |
20 | #include <ctype.h> | ||
20 | #include <string.h> | 21 | #include <string.h> |
21 | #include <stdio.h> | 22 | #include <sprintf.h> |
22 | #include <atoi.h> | 23 | #include <atoi.h> |
23 | #include <timefuncs.h> | ||
24 | #include <ctype.h> | ||
25 | #include "debug.h" | 24 | #include "debug.h" |
26 | #include "button.h" | ||
27 | #include "lcd.h" | ||
28 | #include "dir.h" | ||
29 | #include "file.h" | ||
30 | #include "kernel.h" | ||
31 | #include "usb.h" | ||
32 | #include "sprintf.h" | ||
33 | #include "logf.h" | ||
34 | #include "screens.h" | ||
35 | #include "misc.h" | ||
36 | #include "i2c.h" | ||
37 | #include "mas.h" | ||
38 | #include "plugin.h" | ||
39 | #include "lang.h" | 25 | #include "lang.h" |
40 | #include "keyboard.h" | 26 | #include "keyboard.h" |
41 | #include "mpeg.h" | ||
42 | #include "buffer.h" | 27 | #include "buffer.h" |
43 | #include "mp3_playback.h" | ||
44 | #include "backlight.h" | 28 | #include "backlight.h" |
45 | #include "ata.h" | ||
46 | #include "talk.h" | ||
47 | #include "sound_menu.h" | 29 | #include "sound_menu.h" |
48 | #include "mp3data.h" | 30 | #include "mp3data.h" |
49 | #include "powermgmt.h" | 31 | #include "powermgmt.h" |
50 | #include "system.h" | ||
51 | #include "timer.h" | ||
52 | #include "sound.h" | ||
53 | #include "database.h" | ||
54 | #include "splash.h" | 32 | #include "splash.h" |
55 | #include "list.h" | ||
56 | #if (CONFIG_CODEC == SWCODEC) | ||
57 | #include "pcm_playback.h" | ||
58 | #include "dsp.h" | ||
59 | #endif | ||
60 | 33 | ||
61 | #ifdef CONFIG_CHARGING | 34 | #ifdef CONFIG_CHARGING |
62 | #include "power.h" | 35 | #include "power.h" |
63 | #endif | 36 | #endif |
64 | 37 | ||
65 | #ifdef HAVE_LCD_BITMAP | 38 | #ifdef HAVE_LCD_BITMAP |
66 | #include "peakmeter.h" | ||
67 | #include "widgets.h" | ||
68 | #include "bmp.h" | 39 | #include "bmp.h" |
69 | #include "bidi.h" | 40 | #include "bidi.h" |
70 | #endif | 41 | #endif |
71 | 42 | ||
72 | #ifdef HAVE_REMOTE_LCD | ||
73 | #include "lcd-remote.h" | ||
74 | #endif | ||
75 | |||
76 | #ifdef SIMULATOR | 43 | #ifdef SIMULATOR |
77 | static unsigned char pluginbuf[PLUGIN_BUFFER_SIZE]; | 44 | static unsigned char pluginbuf[PLUGIN_BUFFER_SIZE]; |
78 | void *sim_plugin_load(char *plugin, void **pd); | 45 | void *sim_plugin_load(char *plugin, void **pd); |
@@ -475,6 +442,27 @@ static const struct plugin_api rockbox_api = { | |||
475 | /* new stuff at the end, sort into place next time | 442 | /* new stuff at the end, sort into place next time |
476 | the API gets incompatible */ | 443 | the API gets incompatible */ |
477 | 444 | ||
445 | /* Keep these at the bottom till fully proven */ | ||
446 | #if CONFIG_CODEC == SWCODEC | ||
447 | &audio_master_sampr_list[0], | ||
448 | &hw_freq_sampr[0], | ||
449 | #ifndef SIMULATOR | ||
450 | pcm_apply_settings, | ||
451 | #endif | ||
452 | #ifdef HAVE_RECORDING | ||
453 | &rec_freq_sampr[0], | ||
454 | #ifndef SIMULATOR | ||
455 | pcm_set_monitor, | ||
456 | pcm_set_rec_source, | ||
457 | pcm_init_recording, | ||
458 | pcm_close_recording, | ||
459 | pcm_record_data, | ||
460 | pcm_stop_recording, | ||
461 | pcm_calculate_rec_peaks, | ||
462 | rec_set_source, | ||
463 | #endif | ||
464 | #endif /* HAVE_RECORDING */ | ||
465 | #endif /* CONFIG_CODEC == SWCODEC */ | ||
478 | }; | 466 | }; |
479 | 467 | ||
480 | int plugin_load(const char* plugin, void* parameter) | 468 | int plugin_load(const char* plugin, void* parameter) |