summaryrefslogtreecommitdiffstats
path: root/apps/talk.h
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2007-10-07 08:12:01 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2007-10-07 08:12:01 +0000
commitd7d6b780d4975ee671b33872c294ff9b0c33227d (patch)
tree3318ae620ab997e6be040d586fdd60dcfdf97652 /apps/talk.h
parent32f8c402de64c469bc8416c91d50f7785283f28c (diff)
downloadrockbox-d7d6b780d4975ee671b33872c294ff9b0c33227d.tar.gz
rockbox-d7d6b780d4975ee671b33872c294ff9b0c33227d.tar.bz2
rockbox-d7d6b780d4975ee671b33872c294ff9b0c33227d.zip
Accept FS#7897 with some changes by me. moves the code to talk time/date out of main_menu.c to make it hopefully more useful.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15011 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/talk.h')
-rw-r--r--apps/talk.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/apps/talk.h b/apps/talk.h
index 75ab6fca7e..a95fc27a28 100644
--- a/apps/talk.h
+++ b/apps/talk.h
@@ -25,6 +25,7 @@
#define __TALK_H__
#include <stdbool.h>
+#include "time.h"
enum {
/* See array "unit_voiced" in talk.c function "talk_value" */
@@ -78,6 +79,15 @@ void talk_disable_menus(void); /* disable voice menus (temporarily, not persiste
void talk_enable_menus(void); /* re-enable voice menus */
int do_shutup(void); /* kill voice unconditionally */
+#if CONFIG_RTC
+/* this is in talk.c which isnt compiled for hwcodec simulator */
+#if !defined(SIMULATOR) || CONFIG_CODEC == SWCODEC
+void talk_date_time(struct tm *time, bool speak_current_time_string);
+#else
+#define talk_date_time(t, s)
+#endif
+#endif /* CONFIG_RTC */
+
/* This (otherwise invalid) ID signals the end of the array. */
#define TALK_FINAL_ID LANG_LAST_INDEX_IN_ARRAY