summaryrefslogtreecommitdiff
path: root/src/ui.h
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2020-08-09 09:23:38 +0200
committerLars-Dominik Braun <lars@6xq.net>2020-08-09 09:23:38 +0200
commit4c228cd60890c0ef09c345c13713453c4c2dd508 (patch)
tree12b39298dd172291ea82529354578cf6e0cf8d73 /src/ui.h
parentbc6bd8a2b8b84a79dd77b81d6a25b661c5d1d1ca (diff)
downloadpianobar-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.h2
1 files changed, 2 insertions, 0 deletions
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);