1
0
Fork 0
forked from len0rd/rockbox

Added functions for the split editor plugin

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4974 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Linus Nielsen Feltzing 2004-07-29 13:59:04 +00:00
parent 0744c50a38
commit be6c8ab463
2 changed files with 33 additions and 1 deletions

View file

@ -45,6 +45,7 @@
#include "powermgmt.h" #include "powermgmt.h"
#ifdef HAVE_LCD_BITMAP #ifdef HAVE_LCD_BITMAP
#include "peakmeter.h"
#include "widgets.h" #include "widgets.h"
#endif #endif
@ -243,6 +244,21 @@ static const struct plugin_api rockbox_api = {
/* new stuff at the end, sort into place next time /* new stuff at the end, sort into place next time
the API gets incompatible */ the API gets incompatible */
#ifdef HAVE_MAS3587F
mpeg_set_pitch,
peak_meter_scale_value,
peak_meter_set_use_dbfs,
peak_meter_get_use_dbfs,
#endif
#ifdef HAVE_LCD_BITMAP
lcd_puts_scroll_style,
#endif
mpeg_flush_and_reload_tracks,
strncasecmp,
mpeg_get_file_pos,
find_next_frame,
mpeg_get_last_header,
}; };
int plugin_load(char* plugin, void* parameter) int plugin_load(char* plugin, void* parameter)

View file

@ -60,7 +60,7 @@
#endif #endif
/* increase this every time the api struct changes */ /* increase this every time the api struct changes */
#define PLUGIN_API_VERSION 25 #define PLUGIN_API_VERSION 26
/* update this to latest version if a change to the api struct breaks /* update this to latest version if a change to the api struct breaks
backwards compatibility (and please take the opportunity to sort in any backwards compatibility (and please take the opportunity to sort in any
@ -276,7 +276,23 @@ struct plugin_api {
/* new stuff at the end, sort into place next time /* new stuff at the end, sort into place next time
the API gets incompatible */ the API gets incompatible */
#ifdef HAVE_MAS3587F
void (*mpeg_set_pitch)(int pitch);
unsigned short (*peak_meter_scale_value)(unsigned short val,
int meterwidth);
void (*peak_meter_set_use_dbfs)(int use);
int (*peak_meter_get_use_dbfs)(void);
#endif
#ifdef HAVE_LCD_BITMAP
void (*lcd_puts_scroll_style)(int x, int y, unsigned char* string, int style);
#endif
void (*mpeg_flush_and_reload_tracks)(void);
int (*strncasecmp)(const char *s1, const char *s2, size_t n);
int (*mpeg_get_file_pos)(void);
unsigned long (*find_next_frame)(int fd, int *offset,
int max_offset, unsigned long last_header);
unsigned long (*mpeg_get_last_header)(void);
}; };
/* defined by the plugin loader (plugin.c) */ /* defined by the plugin loader (plugin.c) */