static int image_mot_buffer_complete(image_t *image)
{
- image_mot_t *mot = image->type_private;
+ struct image_mot *mot = image->type_private;
struct fileio *fileio = &mot->fileio;
uint32_t full_address = 0x0;
uint32_t cooked_bytes;
}
else if (image->type == IMAGE_SRECORD)
{
- image_mot_t *image_mot;
+ struct image_mot *image_mot;
- image_mot = image->type_private = malloc(sizeof(image_mot_t));
+ image_mot = image->type_private = malloc(sizeof(struct image_mot));
if ((retval = fileio_open(&image_mot->fileio, url, FILEIO_READ, FILEIO_TEXT)) != ERROR_OK)
{
}
else if (image->type == IMAGE_SRECORD)
{
- image_mot_t *image_mot = image->type_private;
+ struct image_mot *image_mot = image->type_private;
fileio_close(&image_mot->fileio);
uint8_t endianness;
} image_elf_t;
-typedef struct image_mot_s
+struct image_mot
{
struct fileio fileio;
uint8_t *buffer;
-} image_mot_t;
+};
int image_open(image_t *image, const char *url, const char *type_string);
int image_read_section(image_t *image, int section, uint32_t offset,