diff options
author | Barry Wardell <rockbox@barrywardell.net> | 2007-03-12 22:12:20 +0000 |
---|---|---|
committer | Barry Wardell <rockbox@barrywardell.net> | 2007-03-12 22:12:20 +0000 |
commit | 2370998a873f8be85825c8a3b0ccca5a9913c20e (patch) | |
tree | a6d5ea4bcf007d22a22f07e26fd98e114c6221b7 /bootloader/common.h | |
parent | 62dbd97e909ccacf4165c65f676ee134bd1b880a (diff) | |
download | rockbox-2370998a873f8be85825c8a3b0ccca5a9913c20e.tar.gz rockbox-2370998a873f8be85825c8a3b0ccca5a9913c20e.zip |
Disable bootloader messages in the H10 and Sansa bootloaders unless the PLAY (on H10) or RIGHT (on Sansa) button is being held. Messages are still displayed if an error occurs. This has already been implemented for iPod bootloaders, but still needs implementing for the other bootloaders.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12742 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'bootloader/common.h')
-rw-r--r-- | bootloader/common.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bootloader/common.h b/bootloader/common.h index adb833fd1d..3607dd0f68 100644 --- a/bootloader/common.h +++ b/bootloader/common.h | |||
@@ -31,9 +31,15 @@ | |||
31 | /* Set this to true to enable lcd_update() in the printf function */ | 31 | /* Set this to true to enable lcd_update() in the printf function */ |
32 | extern bool verbose; | 32 | extern bool verbose; |
33 | 33 | ||
34 | /* Error types */ | ||
35 | #define EATA -1 | ||
36 | #define EDISK -2 | ||
37 | #define EBOOTFILE -3 | ||
38 | |||
34 | /* Functions common to all bootloaders */ | 39 | /* Functions common to all bootloaders */ |
35 | void reset_screen(void); | 40 | void reset_screen(void); |
36 | void printf(const char *format, ...); | 41 | void printf(const char *format, ...); |
37 | char *strerror(int error); | 42 | char *strerror(int error); |
43 | void error(int errortype, int error); | ||
38 | int load_firmware(unsigned char* buf, char* firmware, int buffer_size); | 44 | int load_firmware(unsigned char* buf, char* firmware, int buffer_size); |
39 | int load_raw_firmware(unsigned char* buf, char* firmware, int buffer_size); | 45 | int load_raw_firmware(unsigned char* buf, char* firmware, int buffer_size); |