summaryrefslogtreecommitdiff
path: root/apps/misc.h
diff options
context:
space:
mode:
authorChristian Soffke <christian.soffke@gmail.com>2024-05-13 17:11:45 +0200
committerChristian Soffke <christian.soffke@gmail.com>2024-05-13 18:18:45 +0200
commitfdba79cd7777d3318531995083984fade98afae8 (patch)
tree908ff3d74414e133456b9f29aab4fedb58f5ba0c /apps/misc.h
parent8eeef333a15d99a38f733a45612728dfae66b862 (diff)
downloadrockbox-fdba79cd7777d3318531995083984fade98afae8.tar.gz
rockbox-fdba79cd7777d3318531995083984fade98afae8.zip
shortcuts: refactor sleeptimer / talk_timedate
move some functions around, with no effect on behavior Change-Id: I4638a28f5ff2a851534a3dd696ea7e763029cb2f
Diffstat (limited to 'apps/misc.h')
-rw-r--r--apps/misc.h13
1 files changed, 13 insertions, 0 deletions
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,
93 */ 93 */
94void format_time(char* buf, int buf_size, long t); 94void format_time(char* buf, int buf_size, long t);
95 95
96const char* format_sleeptimer(char* buffer, size_t buffer_size,
97 int value, const char* unit);
98
99/* A string representation of either whether a sleep timer will be started or
100 canceled, and how long it will be or how long is remaining in brackets */
101char* string_sleeptimer(char *buffer, size_t buffer_len);
102int toggle_sleeptimer(void);
103void talk_sleeptimer(void);
104
105#if CONFIG_RTC
106void talk_timedate(void);
107#endif
108
96/* Ask the user if they really want to erase the current dynamic playlist 109/* Ask the user if they really want to erase the current dynamic playlist
97 * returns true if the playlist should be replaced */ 110 * returns true if the playlist should be replaced */
98bool warn_on_pl_erase(void); 111bool warn_on_pl_erase(void);