diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2020-08-09 09:23:38 +0200 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2020-08-09 09:23:38 +0200 |
commit | 4c228cd60890c0ef09c345c13713453c4c2dd508 (patch) | |
tree | 12b39298dd172291ea82529354578cf6e0cf8d73 /src/ui.h | |
parent | bc6bd8a2b8b84a79dd77b81d6a25b661c5d1d1ca (diff) | |
download | pianobar-4c228cd60890c0ef09c345c13713453c4c2dd508.tar.gz pianobar-4c228cd60890c0ef09c345c13713453c4c2dd508.tar.bz2 pianobar-4c228cd60890c0ef09c345c13713453c4c2dd508.zip |
Allow choosing time format
Introduce new format string for playback time, supporting formats like
-remaining/total, elapsed/total, …
Fixes #699.
Diffstat (limited to 'src/ui.h')
-rw-r--r-- | src/ui.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); |