From 4c228cd60890c0ef09c345c13713453c4c2dd508 Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Sun, 9 Aug 2020 09:23:38 +0200 Subject: Allow choosing time format MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Introduce new format string for playback time, supporting formats like -remaining/total, elapsed/total, … Fixes #699. --- src/ui.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/ui.h') diff --git a/src/ui.h b/src/ui.h index da6bd8e..33d2a76 100644 --- a/src/ui.h +++ b/src/ui.h @@ -53,4 +53,6 @@ void BarUiStartEventCmd (const BarSettings_t *, const char *, bool BarUiPianoCall (BarApp_t * const, const PianoRequestType_t, void *, PianoReturn_t *, CURLcode *); void BarUiHistoryPrepend (BarApp_t *app, PianoSong_t *song); +void BarUiCustomFormat (char *dest, size_t destSize, const char *format, + const char *formatChars, const char **formatVals); -- cgit v1.2.3