diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/plugin.c | 6 | ||||
-rw-r--r-- | apps/plugin.h | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/apps/plugin.c b/apps/plugin.c index 2319c9defc..bfa497479c 100644 --- a/apps/plugin.c +++ b/apps/plugin.c | |||
@@ -19,6 +19,8 @@ | |||
19 | #include <stdbool.h> | 19 | #include <stdbool.h> |
20 | #include <string.h> | 20 | #include <string.h> |
21 | #include <stdio.h> | 21 | #include <stdio.h> |
22 | #include <atoi.h> | ||
23 | #include <timefuncs.h> | ||
22 | #include "button.h" | 24 | #include "button.h" |
23 | #include "lcd.h" | 25 | #include "lcd.h" |
24 | #include "dir.h" | 26 | #include "dir.h" |
@@ -138,7 +140,9 @@ static struct plugin_api rockbox_api = { | |||
138 | splash, | 140 | splash, |
139 | qsort, | 141 | qsort, |
140 | kbd_input, | 142 | kbd_input, |
141 | mpeg_current_track, | 143 | mpeg_current_track, |
144 | atoi, | ||
145 | get_time | ||
142 | }; | 146 | }; |
143 | 147 | ||
144 | int plugin_load(char* plugin, void* parameter) | 148 | int plugin_load(char* plugin, void* parameter) |
diff --git a/apps/plugin.h b/apps/plugin.h index a9f551860a..3d6859b0d3 100644 --- a/apps/plugin.h +++ b/apps/plugin.h | |||
@@ -168,6 +168,8 @@ struct plugin_api { | |||
168 | int(*compar)(const void *, const void *)); | 168 | int(*compar)(const void *, const void *)); |
169 | int (*kbd_input)(char* buffer, int buflen); | 169 | int (*kbd_input)(char* buffer, int buflen); |
170 | struct mp3entry* (*mpeg_current_track)(void); | 170 | struct mp3entry* (*mpeg_current_track)(void); |
171 | int (*atoi)(const char *str); | ||
172 | struct tm* (*get_time)(void); | ||
171 | }; | 173 | }; |
172 | 174 | ||
173 | /* defined by the plugin loader (plugin.c) */ | 175 | /* defined by the plugin loader (plugin.c) */ |