diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2004-07-29 13:59:04 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2004-07-29 13:59:04 +0000 |
commit | be6c8ab463d45f1526fe7a2a4e317e77cfba01f7 (patch) | |
tree | b41617c9813d8306d26fe4c04b24c1c0e0487004 /apps | |
parent | 0744c50a3893183a6de041247506a0cab549c540 (diff) | |
download | rockbox-be6c8ab463d45f1526fe7a2a4e317e77cfba01f7.tar.gz rockbox-be6c8ab463d45f1526fe7a2a4e317e77cfba01f7.zip |
Added functions for the split editor plugin
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4974 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r-- | apps/plugin.c | 16 | ||||
-rw-r--r-- | apps/plugin.h | 18 |
2 files changed, 33 insertions, 1 deletions
diff --git a/apps/plugin.c b/apps/plugin.c index dc7351de5a..f210462815 100644 --- a/apps/plugin.c +++ b/apps/plugin.c | |||
@@ -45,6 +45,7 @@ | |||
45 | #include "powermgmt.h" | 45 | #include "powermgmt.h" |
46 | 46 | ||
47 | #ifdef HAVE_LCD_BITMAP | 47 | #ifdef HAVE_LCD_BITMAP |
48 | #include "peakmeter.h" | ||
48 | #include "widgets.h" | 49 | #include "widgets.h" |
49 | #endif | 50 | #endif |
50 | 51 | ||
@@ -243,6 +244,21 @@ static const struct plugin_api rockbox_api = { | |||
243 | /* new stuff at the end, sort into place next time | 244 | /* new stuff at the end, sort into place next time |
244 | the API gets incompatible */ | 245 | the API gets incompatible */ |
245 | 246 | ||
247 | #ifdef HAVE_MAS3587F | ||
248 | mpeg_set_pitch, | ||
249 | |||
250 | peak_meter_scale_value, | ||
251 | peak_meter_set_use_dbfs, | ||
252 | peak_meter_get_use_dbfs, | ||
253 | #endif | ||
254 | #ifdef HAVE_LCD_BITMAP | ||
255 | lcd_puts_scroll_style, | ||
256 | #endif | ||
257 | mpeg_flush_and_reload_tracks, | ||
258 | strncasecmp, | ||
259 | mpeg_get_file_pos, | ||
260 | find_next_frame, | ||
261 | mpeg_get_last_header, | ||
246 | }; | 262 | }; |
247 | 263 | ||
248 | int plugin_load(char* plugin, void* parameter) | 264 | int plugin_load(char* plugin, void* parameter) |
diff --git a/apps/plugin.h b/apps/plugin.h index dc8a273c99..3d5f9a5504 100644 --- a/apps/plugin.h +++ b/apps/plugin.h | |||
@@ -60,7 +60,7 @@ | |||
60 | #endif | 60 | #endif |
61 | 61 | ||
62 | /* increase this every time the api struct changes */ | 62 | /* increase this every time the api struct changes */ |
63 | #define PLUGIN_API_VERSION 25 | 63 | #define PLUGIN_API_VERSION 26 |
64 | 64 | ||
65 | /* update this to latest version if a change to the api struct breaks | 65 | /* update this to latest version if a change to the api struct breaks |
66 | backwards compatibility (and please take the opportunity to sort in any | 66 | backwards compatibility (and please take the opportunity to sort in any |
@@ -276,7 +276,23 @@ struct plugin_api { | |||
276 | /* new stuff at the end, sort into place next time | 276 | /* new stuff at the end, sort into place next time |
277 | the API gets incompatible */ | 277 | the API gets incompatible */ |
278 | 278 | ||
279 | #ifdef HAVE_MAS3587F | ||
280 | void (*mpeg_set_pitch)(int pitch); | ||
279 | 281 | ||
282 | unsigned short (*peak_meter_scale_value)(unsigned short val, | ||
283 | int meterwidth); | ||
284 | void (*peak_meter_set_use_dbfs)(int use); | ||
285 | int (*peak_meter_get_use_dbfs)(void); | ||
286 | #endif | ||
287 | #ifdef HAVE_LCD_BITMAP | ||
288 | void (*lcd_puts_scroll_style)(int x, int y, unsigned char* string, int style); | ||
289 | #endif | ||
290 | void (*mpeg_flush_and_reload_tracks)(void); | ||
291 | int (*strncasecmp)(const char *s1, const char *s2, size_t n); | ||
292 | int (*mpeg_get_file_pos)(void); | ||
293 | unsigned long (*find_next_frame)(int fd, int *offset, | ||
294 | int max_offset, unsigned long last_header); | ||
295 | unsigned long (*mpeg_get_last_header)(void); | ||
280 | }; | 296 | }; |
281 | 297 | ||
282 | /* defined by the plugin loader (plugin.c) */ | 298 | /* defined by the plugin loader (plugin.c) */ |