diff options
author | Marcin Bukat <marcin.bukat@gmail.com> | 2012-03-04 15:34:29 +0100 |
---|---|---|
committer | Marcin Bukat <marcin.bukat@gmail.com> | 2013-06-27 13:50:11 +0200 |
commit | 0b29691324e5700f15ea653592bf29f8552d47d7 (patch) | |
tree | 00e4f77f28c813a493cd8af22170f486f6e82903 /bootloader/common.h | |
parent | 46ea8bfe7c690c8db230fff3a582a69779f8e432 (diff) | |
download | rockbox-0b29691324e5700f15ea653592bf29f8552d47d7.tar.gz rockbox-0b29691324e5700f15ea653592bf29f8552d47d7.zip |
Move load_firmware() to separate file
The idea is to share loading code between bootloaders and rolo().
Change-Id: I1656ed91946d7a05cb7c9fa7a16793c3c862a5cd
Reviewed-on: http://gerrit.rockbox.org/190
Reviewed-by: Marcin Bukat <marcin.bukat@gmail.com>
Diffstat (limited to 'bootloader/common.h')
-rw-r--r-- | bootloader/common.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/bootloader/common.h b/bootloader/common.h index 7d5425c9c8..d09ff1a5ab 100644 --- a/bootloader/common.h +++ b/bootloader/common.h @@ -21,16 +21,6 @@ #include <stdbool.h> -/* Error codes */ -#define EOK 0 -#define EFILE_NOT_FOUND -1 -#define EREAD_CHKSUM_FAILED -2 -#define EREAD_MODEL_FAILED -3 -#define EREAD_IMAGE_FAILED -4 -#define EBAD_CHKSUM -5 -#define EFILE_TOO_BIG -6 -#define EINVALID_FORMAT -7 - /* Set this to true to enable lcd_update() in the printf function */ extern bool verbose; @@ -42,9 +32,7 @@ extern bool verbose; /* Functions common to all bootloaders */ void reset_screen(void); int printf(const char *format, ...); -char *strerror(int error); void error(int errortype, int error, bool shutdown); -int load_firmware(unsigned char* buf, char* firmware, int buffer_size); int load_raw_firmware(unsigned char* buf, char* firmware, int buffer_size); #ifdef ROCKBOX_HAS_LOGF void display_logf(void); |