summaryrefslogtreecommitdiffstats
path: root/apps/talk.h
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2004-08-18 01:09:31 +0000
committerJens Arnold <amiconn@rockbox.org>2004-08-18 01:09:31 +0000
commit8fb336148fb34474c67fbc6e0354daa4512a22fb (patch)
tree5910d0a54bf8424b424939a263abef0f570591f7 /apps/talk.h
parent6d0da414bfea35b4370ad820d28d4565521d7b12 (diff)
downloadrockbox-8fb336148fb34474c67fbc6e0354daa4512a22fb.tar.gz
rockbox-8fb336148fb34474c67fbc6e0354daa4512a22fb.tar.bz2
rockbox-8fb336148fb34474c67fbc6e0354daa4512a22fb.zip
Const policed pointer arguments to functions, part 3
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4999 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/talk.h')
-rw-r--r--apps/talk.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/talk.h b/apps/talk.h
index de93b1678c..c4c8bc7285 100644
--- a/apps/talk.h
+++ b/apps/talk.h
@@ -49,7 +49,7 @@ enum {
/* make a "talkable" ID from number + unit
unit is upper 4 bits, number the remaining (in regular 2's complement) */
-#define TALK_ID(n,u) ((u)<<UNIT_SHIFT | ((n) & ~(-1<<UNIT_SHIFT)))
+#define TALK_ID(n,u) ((u)<<UNIT_SHIFT | ((n) & ~(-1<<UNIT_SHIFT)))
/* convenience macro to have both virtual pointer and ID as arguments */
#define STR(id) ID2P(id), id
@@ -61,9 +61,9 @@ extern const char* const dir_thumbnail_name;
void talk_init(void);
int talk_buffer_steal(void); /* claim the mp3 buffer e.g. for play/record */
int talk_id(int id, bool enqueue); /* play a voice ID from voicefont */
-int talk_file(char* filename, bool enqueue); /* play a thumbnail from file */
+int talk_file(const char* filename, bool enqueue); /* play a thumbnail from file */
int talk_number(int n, bool enqueue); /* say a number */
int talk_value(int n, int unit, bool enqueue); /* say a numeric value */
-int talk_spell(char* spell, bool enqueue); /* spell a string */
+int talk_spell(const char* spell, bool enqueue); /* spell a string */
#endif /* __TALK_H__ */