summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Wilgus <wilgus.william@gmail.com>2020-07-23 09:49:34 -0400
committerWilliam Wilgus <wilgus.william@gmail.com>2020-07-24 20:07:45 -0400
commit7824b1dcb56cad3cecba733ab6cec61f29862981 (patch)
tree174fb9b49251c578f6f67fcb23fe77bdafce9fba
parente49c1af5709bd24ea9c088c6d1676372bd7cc780 (diff)
downloadrockbox-7824b1d.tar.gz
rockbox-7824b1d.zip
Plugin Api update with added functions
Change-Id: I3c48c999da240f68f4960d2e137c613b224beb5c
-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 = {
#endif
/* playback control */
+ playlist_get_current,
playlist_amount,
playlist_resume,
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);
new function which are "waiting" at the end of the function table) */
#define PLUGIN_MIN_API_VERSION 239
+/* 239 Marks the removal of ARCHOS HWCODEC and CHARCELL */
+
/* plugin return codes */
/* internal returns start at 0x100 to make exit(1..255) work */
#define INTERNAL_PLUGIN_RETVAL_START 0x100
@@ -769,6 +771,7 @@ struct plugin_api {
#endif
/* playback control */
+ struct playlist_info* (*playlist_get_current)(void);
int (*playlist_amount)(void);
int (*playlist_resume)(void);
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)
\return
\description
-int kbd_input(char* buffer, int buflen)
+int kbd_input(char* buffer, int buflen, unsigned short *kbd)
\group misc
\param buffer
\param buflen
+ \param *kbd
\return 0 upon success, negative upon failure
\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)
\description
+struct playlist_info *playlist_get_current(void)
+ \group playback control
+ \return pointer to current playlist
+ \description
+
int playlist_amount(void)
\group playback control
\return the number of tracks in current playlist