summaryrefslogtreecommitdiff
path: root/apps/plugin.h
diff options
context:
space:
mode:
authorChristian Soffke <christian.soffke@gmail.com>2023-04-13 15:14:58 +0200
committerChristian Soffke <christian.soffke@gmail.com>2023-09-20 23:57:39 -0400
commitcb3a6877fcbb001a8ee9afd3e4a25579ac40f805 (patch)
tree0bb67d281ec320e27fa6757f2d085029bda954d1 /apps/plugin.h
parent6ac55adc88cdacdc78e17b3e8c75fedc1d5972ef (diff)
downloadrockbox-cb3a6877fcbb001a8ee9afd3e4a25579ac40f805.tar.gz
rockbox-cb3a6877fcbb001a8ee9afd3e4a25579ac40f805.zip
RFC: Turn Playing Time function into plugin
Since this function already requires hitting the disk, it may make sense to turn it into a plugin. A minor advantage (apart from cleaning up onplay.c and saving RAM) is that you can now access the menu not just from the WPS context menu, but also from the Shortcuts Menu or using the WPS plugin shortcut. On the other hand, TSR plugins would have to be terminated when Playing Time is launched, as is already the case for other plugins such as PictureFlow. Change-Id: Iea85229486887463ffc52f05e33e2340437f69a4
Diffstat (limited to 'apps/plugin.h')
-rw-r--r--apps/plugin.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/apps/plugin.h b/apps/plugin.h
index 007552d120..b6dff14b1f 100644
--- a/apps/plugin.h
+++ b/apps/plugin.h
@@ -958,6 +958,17 @@ struct plugin_api {
958 /* new stuff at the end, sort into place next time 958 /* new stuff at the end, sort into place next time
959 the API gets incompatible */ 959 the API gets incompatible */
960 960
961 const char* (*format_time_auto)(char *buffer, int buf_len, long value,
962 int unit_idx, bool supress_unit);
963 char* (*output_dyn_value)(char *buf, int buf_size, int value,
964 const unsigned char * const *units,
965 unsigned int unit_count, bool binary_scale);
966 int (*playlist_get_resume_info)(int *resume_index);
967 int (*playlist_get_track_info)(struct playlist_info* playlist, int index,
968 struct playlist_track_info* info);
969 bool (*list_do_action)(int context, int timeout,
970 struct gui_synclist *lists, int *action);
971 int (*talk_idarray)(const long *idarray, bool enqueue);
961}; 972};
962 973
963/* plugin header */ 974/* plugin header */