summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2011-06-20 19:32:48 +0000
committerThomas Martitz <kugel@rockbox.org>2011-06-20 19:32:48 +0000
commit7b374b43b5023cbc2b5f3b043f95ce3fa9a39b61 (patch)
tree84a9ccb54ac1786395c3c0fe637dc84cd04b7343 /apps
parent26ec41b028acfee3533def925c9abd705b66864c (diff)
downloadrockbox-7b374b43b5023cbc2b5f3b043f95ce3fa9a39b61.tar.gz
rockbox-7b374b43b5023cbc2b5f3b043f95ce3fa9a39b61.zip
Use enum themable_icons in struct file_type and struct filetype (who made those names?).
It's the correct type and should save some memory due to struct padding (on eabi). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30027 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/filetypes.c2
-rw-r--r--apps/filetypes.h2
-rw-r--r--apps/gui/icon.h5
3 files changed, 4 insertions, 5 deletions
diff --git a/apps/filetypes.c b/apps/filetypes.c
index 481c0df6de..779337e0ca 100644
--- a/apps/filetypes.c
+++ b/apps/filetypes.c
@@ -159,7 +159,7 @@ void tree_get_filetypes(const struct filetype** types, int* count)
159#define ROCK_EXTENSION "rock" 159#define ROCK_EXTENSION "rock"
160 160
161struct file_type { 161struct file_type {
162 int icon; /* the icon which shall be used for it, NOICON if unknown */ 162 enum themable_icons icon; /* the icon which shall be used for it, NOICON if unknown */
163 unsigned char attr; /* FILE_ATTR_MASK >> 8 */ 163 unsigned char attr; /* FILE_ATTR_MASK >> 8 */
164 char* plugin; /* Which plugin to use, NULL if unknown, or builtin */ 164 char* plugin; /* Which plugin to use, NULL if unknown, or builtin */
165 char* extension; /* NULL for none */ 165 char* extension; /* NULL for none */
diff --git a/apps/filetypes.h b/apps/filetypes.h
index a957f1631f..0b50b45580 100644
--- a/apps/filetypes.h
+++ b/apps/filetypes.h
@@ -51,8 +51,8 @@
51struct filetype { 51struct filetype {
52 char* extension; 52 char* extension;
53 int tree_attr; 53 int tree_attr;
54 int icon;
55 int voiceclip; 54 int voiceclip;
55 enum themable_icons icon;
56}; 56};
57void tree_get_filetypes(const struct filetype**, int*); 57void tree_get_filetypes(const struct filetype**, int*);
58 58
diff --git a/apps/gui/icon.h b/apps/gui/icon.h
index 9a58076509..e79defe798 100644
--- a/apps/gui/icon.h
+++ b/apps/gui/icon.h
@@ -30,12 +30,11 @@ typedef const unsigned char * ICON;
30typedef long ICON; 30typedef long ICON;
31#endif 31#endif
32 32
33#define NOICON Icon_NOICON
34#define FORCE_INBUILT_ICON 0x80000000
35/* Don't #ifdef icon values, or we wont be able to use the same 33/* Don't #ifdef icon values, or we wont be able to use the same
36 bmp for every target. */ 34 bmp for every target. */
37enum themable_icons { 35enum themable_icons {
38 Icon_NOICON = -1, /* Dont put this in a .bmp */ 36 NOICON = -1,
37 Icon_NOICON = NOICON, /* Dont put this in a .bmp */
39 Icon_Audio, 38 Icon_Audio,
40 Icon_Folder, 39 Icon_Folder,
41 Icon_Playlist, 40 Icon_Playlist,