summaryrefslogtreecommitdiffstats
path: root/bootloader/x1000/x1000bootloader.h
diff options
context:
space:
mode:
Diffstat (limited to 'bootloader/x1000/x1000bootloader.h')
-rw-r--r--bootloader/x1000/x1000bootloader.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/bootloader/x1000/x1000bootloader.h b/bootloader/x1000/x1000bootloader.h
index 84feded9b3..c5984c9a91 100644
--- a/bootloader/x1000/x1000bootloader.h
+++ b/bootloader/x1000/x1000bootloader.h
@@ -24,8 +24,11 @@
#include "config.h"
#include <stddef.h>
+#include <stdint.h>
#include <stdbool.h>
+struct uimage_header;
+
#if defined(FIIO_M3K)
# define BL_RECOVERY BUTTON_VOL_UP
# define BL_UP BUTTON_VOL_UP
@@ -108,6 +111,10 @@ int check_disk(bool wait);
void usb_mode(void);
int load_rockbox(const char* filename, size_t* sizep);
+int load_uimage_file(const char* filename,
+ struct uimage_header* uh, size_t* sizep);
+int load_uimage_flash(uint32_t addr, uint32_t length,
+ struct uimage_header* uh, size_t* sizep);
void recovery_menu(void) __attribute__((noreturn));