1 #ifndef FIRMWARE_CRC_TYPES_H 2 #define FIRMWARE_CRC_TYPES_H 3 4 // Firmware checksum data 5 typedef struct { 6 const char *start; 7 unsigned size; 8 unsigned crc; 9 } firmware_crc_block_t; 10 11 typedef struct { 12 const char *canon_sub; 13 const firmware_crc_block_t *blocks; 14 } firmware_crc_sub_t; 15 16 typedef struct { 17 const char *firmware_ver_ptr; 18 const firmware_crc_sub_t *subs; 19 const unsigned sub_count; 20 const unsigned block_count; 21 } firmware_crc_desc_t; 22 #endif