From fdba79cd7777d3318531995083984fade98afae8 Mon Sep 17 00:00:00 2001 From: Christian Soffke Date: Mon, 13 May 2024 17:11:45 +0200 Subject: shortcuts: refactor sleeptimer / talk_timedate move some functions around, with no effect on behavior Change-Id: I4638a28f5ff2a851534a3dd696ea7e763029cb2f --- apps/misc.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'apps/misc.h') diff --git a/apps/misc.h b/apps/misc.h index fd48ccf648..28a982d1da 100644 --- a/apps/misc.h +++ b/apps/misc.h @@ -93,6 +93,19 @@ const char *format_time_auto(char *buffer, int buf_len, long value, */ void format_time(char* buf, int buf_size, long t); +const char* format_sleeptimer(char* buffer, size_t buffer_size, + int value, const char* unit); + +/* A string representation of either whether a sleep timer will be started or + canceled, and how long it will be or how long is remaining in brackets */ +char* string_sleeptimer(char *buffer, size_t buffer_len); +int toggle_sleeptimer(void); +void talk_sleeptimer(void); + +#if CONFIG_RTC +void talk_timedate(void); +#endif + /* Ask the user if they really want to erase the current dynamic playlist * returns true if the playlist should be replaced */ bool warn_on_pl_erase(void); -- cgit v1.2.3