From b16438a23b237aa44fe9358a0b8954888bf81ea2 Mon Sep 17 00:00:00 2001 From: Simeon Simeonov Date: Thu, 10 Dec 2020 23:57:33 +0100 Subject: Add support for counting to a specific calendar time (absolute time) --- extras.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'extras.h') diff --git a/extras.h b/extras.h index d4a353e..c78ffff 100644 --- a/extras.h +++ b/extras.h @@ -88,7 +88,6 @@ void i3lock_draw_elapsed_time(cairo_t *cr, const uint32_t *resolution, const time_t *now); - void i3lock_draw_led_clock(cairo_t *cr, const i3lock_led_clock_t *lc, const uint32_t *resolution, @@ -99,4 +98,9 @@ void i3lock_draw_string(cairo_t *cr, const char *formatted_string, const i3lock_elapsed_time_t *et, const uint32_t *resolution); + +char * i3lock_format_elapsed_time(char *to, + const char *template, + int max_size, + int seconds); #endif -- cgit v1.3