summaryrefslogtreecommitdiff
path: root/firmware/include/rb-loader.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/include/rb-loader.h')
-rw-r--r--firmware/include/rb-loader.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/firmware/include/rb-loader.h b/firmware/include/rb-loader.h
index 86c5026af9..71b6e038aa 100644
--- a/firmware/include/rb-loader.h
+++ b/firmware/include/rb-loader.h
@@ -19,3 +19,20 @@
19 ****************************************************************************/ 19 ****************************************************************************/
20 20
21int load_firmware(unsigned char* buf, const char* firmware, int buffer_size); 21int load_firmware(unsigned char* buf, const char* firmware, int buffer_size);
22
23#ifdef HAVE_MULTIBOOT /* defined by config.h */
24/* Check in root of this <volume> for rockbox_main.<playername>
25 * if this file empty or there is a single slash '/'
26 * buf = '<volume#>/<rootdir>/<firmware(name)>\0'
27 * If instead '/<*DIRECTORY*>' is supplied
28 * addpath will be set to this DIRECTORY buf =
29 * '/<volume#>/addpath/<rootdir>/<firmware(name)>\0'
30 * On error returns Negative number or 0
31 * On success returns bytes from snprintf
32 * and generated path will be placed in buf
33 * note: if supplied buffer is too small return will be
34 * the number of bytes that would have been written
35 */
36int get_redirect_dir(char* buf, int buffer_size, int volume,
37 const char* rootdir, const char* firmware);
38#endif