Subversion Repositories freemyipod

Rev

Rev 651 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 651 Rev 658
Line 26... Line 26...
26
 
26
 
27
#include "emcorelib.h"
27
#include "emcorelib.h"
28
 
28
 
29
 
29
 
30
int verify_rockbox_checksum(void* image, size_t size);
30
int verify_rockbox_checksum(void* image, size_t size);
-
 
31
void check_firmware(void** firmware, int* size, bool verify,
-
 
32
                    void* buf, int maxsize, bool compressed);
-
 
33
void load_from_file(void** firmware, int* size, bool verify, const char* filename, int maxsize);
-
 
34
void load_from_flash(void** firmware, int* size, bool verify, const char* filename, int maxsize);
31
 
35
 
32
 
36
 
33
/* emCORE library identifier */
37
/* emCORE library identifier */
34
#define LIBBOOT_IDENTIFIER 0x4c424365
38
#define LIBBOOT_IDENTIFIER 0x4c424365
35
 
39
 
Line 47... Line 51...
47
         existing APIs, also update LIBBOOT_MIN_API_VERSION to current version */
51
         existing APIs, also update LIBBOOT_MIN_API_VERSION to current version */
48
 
52
 
49
struct libboot_api
53
struct libboot_api
50
{
54
{
51
    typeof(verify_rockbox_checksum)* verify_rockbox_checksum;
55
    typeof(verify_rockbox_checksum)* verify_rockbox_checksum;
-
 
56
    typeof(check_firmware)* check_firmware;
-
 
57
    typeof(load_from_file)* load_from_file;
-
 
58
    typeof(load_from_flash)* load_from_flash;
52
};
59
};
53
 
60
 
54
 
61
 
55
#endif
62
#endif