summaryrefslogtreecommitdiff
path: root/apps/metadata.h
diff options
context:
space:
mode:
authorBertrik Sikken <bertrik@sikken.nl>2010-02-28 14:13:35 +0000
committerBertrik Sikken <bertrik@sikken.nl>2010-02-28 14:13:35 +0000
commit7ab1cd7b1b10a9b355ad05a6acd4412069af44cc (patch)
tree7b67b28238c1d8c91a762d4b73de757ca580a61d /apps/metadata.h
parent38efc71615dcaa940aac82d9da6da8e1363443ea (diff)
downloadrockbox-7ab1cd7b1b10a9b355ad05a6acd4412069af44cc.tar.gz
rockbox-7ab1cd7b1b10a9b355ad05a6acd4412069af44cc.zip
Save some RAM by changing a char[] into a const char * in struct afmt_entry. Make other fields const too.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24970 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/metadata.h')
-rw-r--r--apps/metadata.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/metadata.h b/apps/metadata.h
index 7bf086f27d..0d0f6c5aac 100644
--- a/apps/metadata.h
+++ b/apps/metadata.h
@@ -153,16 +153,16 @@ extern const int afmt_rec_format[AFMT_NUM_CODECS];
153/* record describing the audio format */ 153/* record describing the audio format */
154struct afmt_entry 154struct afmt_entry
155{ 155{
156 char label[8]; /* format label */ 156 const char *label; /* format label */
157#if CONFIG_CODEC == SWCODEC 157#if CONFIG_CODEC == SWCODEC
158 char *codec_root_fn; /* root codec filename (sans _enc and .codec) */ 158 const char *codec_root_fn; /* root codec filename (sans _enc and .codec) */
159#ifdef HAVE_RECORDING 159#ifdef HAVE_RECORDING
160 char *codec_enc_root_fn; /* filename of encoder codec */ 160 const char *codec_enc_root_fn; /* filename of encoder codec */
161#endif 161#endif
162#endif 162#endif
163 char *ext_list; /* double NULL terminated extension 163 const char *ext_list; /* double NULL terminated extension
164 list for type with the first as 164 list for type with the first as
165 the default for recording */ 165 the default for recording */
166}; 166};
167 167
168/* database of labels and codecs. add formats per above enum */ 168/* database of labels and codecs. add formats per above enum */