Plugin Api update with added functions
Change-Id: I3c48c999da240f68f4960d2e137c613b224beb5c
This commit is contained in:
parent
e49c1af570
commit
7824b1dcb5
3 changed files with 11 additions and 1 deletions
|
@ -677,6 +677,7 @@ static const struct plugin_api rockbox_api = {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* playback control */
|
/* playback control */
|
||||||
|
playlist_get_current,
|
||||||
playlist_amount,
|
playlist_amount,
|
||||||
playlist_resume,
|
playlist_resume,
|
||||||
playlist_resume_track,
|
playlist_resume_track,
|
||||||
|
|
|
@ -161,6 +161,8 @@ void* plugin_get_buffer(size_t *buffer_size);
|
||||||
new function which are "waiting" at the end of the function table) */
|
new function which are "waiting" at the end of the function table) */
|
||||||
#define PLUGIN_MIN_API_VERSION 239
|
#define PLUGIN_MIN_API_VERSION 239
|
||||||
|
|
||||||
|
/* 239 Marks the removal of ARCHOS HWCODEC and CHARCELL */
|
||||||
|
|
||||||
/* plugin return codes */
|
/* plugin return codes */
|
||||||
/* internal returns start at 0x100 to make exit(1..255) work */
|
/* internal returns start at 0x100 to make exit(1..255) work */
|
||||||
#define INTERNAL_PLUGIN_RETVAL_START 0x100
|
#define INTERNAL_PLUGIN_RETVAL_START 0x100
|
||||||
|
@ -769,6 +771,7 @@ struct plugin_api {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* playback control */
|
/* playback control */
|
||||||
|
struct playlist_info* (*playlist_get_current)(void);
|
||||||
int (*playlist_amount)(void);
|
int (*playlist_amount)(void);
|
||||||
int (*playlist_resume)(void);
|
int (*playlist_resume)(void);
|
||||||
void (*playlist_resume_track)(int start_index, unsigned int crc,
|
void (*playlist_resume_track)(int start_index, unsigned int crc,
|
||||||
|
|
|
@ -792,10 +792,11 @@ bool is_backlight_on(bool ignore_always_off)
|
||||||
\return
|
\return
|
||||||
\description
|
\description
|
||||||
|
|
||||||
int kbd_input(char* buffer, int buflen)
|
int kbd_input(char* buffer, int buflen, unsigned short *kbd)
|
||||||
\group misc
|
\group misc
|
||||||
\param buffer
|
\param buffer
|
||||||
\param buflen
|
\param buflen
|
||||||
|
\param *kbd
|
||||||
\return 0 upon success, negative upon failure
|
\return 0 upon success, negative upon failure
|
||||||
\description Prompt for a string to be stored in =buffer= which is of length =buflen=
|
\description Prompt for a string to be stored in =buffer= which is of length =buflen=
|
||||||
|
|
||||||
|
@ -1513,6 +1514,11 @@ void pcm_stop_recording(void)
|
||||||
\conditions defined(HAVE_RECORDING)
|
\conditions defined(HAVE_RECORDING)
|
||||||
\description
|
\description
|
||||||
|
|
||||||
|
struct playlist_info *playlist_get_current(void)
|
||||||
|
\group playback control
|
||||||
|
\return pointer to current playlist
|
||||||
|
\description
|
||||||
|
|
||||||
int playlist_amount(void)
|
int playlist_amount(void)
|
||||||
\group playback control
|
\group playback control
|
||||||
\return the number of tracks in current playlist
|
\return the number of tracks in current playlist
|
||||||
|
|
Loading…
Reference in a new issue