mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
shortcuts: refactor sleeptimer / talk_timedate
move some functions around, with no effect on behavior Change-Id: I4638a28f5ff2a851534a3dd696ea7e763029cb2f
This commit is contained in:
parent
8eeef333a1
commit
fdba79cd77
5 changed files with 185 additions and 171 deletions
13
apps/misc.h
13
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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue