summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/plugin.c1
-rw-r--r--apps/plugin.h3
-rw-r--r--docs/PLUGIN_API8
3 files changed, 11 insertions, 1 deletions
diff --git a/apps/plugin.c b/apps/plugin.c
index e0932f4730..28577ab251 100644
--- a/apps/plugin.c
+++ b/apps/plugin.c
@@ -677,6 +677,7 @@ static const struct plugin_api rockbox_api = {
677#endif 677#endif
678 678
679 /* playback control */ 679 /* playback control */
680 playlist_get_current,
680 playlist_amount, 681 playlist_amount,
681 playlist_resume, 682 playlist_resume,
682 playlist_resume_track, 683 playlist_resume_track,
diff --git a/apps/plugin.h b/apps/plugin.h
index b152300f97..ee21291192 100644
--- a/apps/plugin.h
+++ b/apps/plugin.h
@@ -161,6 +161,8 @@ void* plugin_get_buffer(size_t *buffer_size);
161 new function which are "waiting" at the end of the function table) */ 161 new function which are "waiting" at the end of the function table) */
162#define PLUGIN_MIN_API_VERSION 239 162#define PLUGIN_MIN_API_VERSION 239
163 163
164/* 239 Marks the removal of ARCHOS HWCODEC and CHARCELL */
165
164/* plugin return codes */ 166/* plugin return codes */
165/* internal returns start at 0x100 to make exit(1..255) work */ 167/* internal returns start at 0x100 to make exit(1..255) work */
166#define INTERNAL_PLUGIN_RETVAL_START 0x100 168#define INTERNAL_PLUGIN_RETVAL_START 0x100
@@ -769,6 +771,7 @@ struct plugin_api {
769#endif 771#endif
770 772
771 /* playback control */ 773 /* playback control */
774 struct playlist_info* (*playlist_get_current)(void);
772 int (*playlist_amount)(void); 775 int (*playlist_amount)(void);
773 int (*playlist_resume)(void); 776 int (*playlist_resume)(void);
774 void (*playlist_resume_track)(int start_index, unsigned int crc, 777 void (*playlist_resume_track)(int start_index, unsigned int crc,
diff --git a/docs/PLUGIN_API b/docs/PLUGIN_API
index b61e383977..1febe9fdf4 100644
--- a/docs/PLUGIN_API
+++ b/docs/PLUGIN_API
@@ -792,10 +792,11 @@ bool is_backlight_on(bool ignore_always_off)
792 \return 792 \return
793 \description 793 \description
794 794
795int kbd_input(char* buffer, int buflen) 795int kbd_input(char* buffer, int buflen, unsigned short *kbd)
796 \group misc 796 \group misc
797 \param buffer 797 \param buffer
798 \param buflen 798 \param buflen
799 \param *kbd
799 \return 0 upon success, negative upon failure 800 \return 0 upon success, negative upon failure
800 \description Prompt for a string to be stored in =buffer= which is of length =buflen= 801 \description Prompt for a string to be stored in =buffer= which is of length =buflen=
801 802
@@ -1513,6 +1514,11 @@ void pcm_stop_recording(void)
1513 \conditions defined(HAVE_RECORDING) 1514 \conditions defined(HAVE_RECORDING)
1514 \description 1515 \description
1515 1516
1517struct playlist_info *playlist_get_current(void)
1518 \group playback control
1519 \return pointer to current playlist
1520 \description
1521
1516int playlist_amount(void) 1522int playlist_amount(void)
1517 \group playback control 1523 \group playback control
1518 \return the number of tracks in current playlist 1524 \return the number of tracks in current playlist