change #include "armv4_5.h" to <target/armv4_5.h>
[fw/openocd] / src / target / image.h
index 55f0ea29cd56960a7c2f798e7ea4f8282cb65b02..e963b3c10a32c817f09fdc25112a5aa719e9e5e4 100644 (file)
@@ -26,7 +26,7 @@
 #ifndef IMAGE_H
 #define IMAGE_H
 
-#include "fileio.h"
+#include <helper/fileio.h>
 
 #ifdef HAVE_ELF_H
 #include <elf.h>
@@ -80,7 +80,7 @@ struct image_ihex
 
 struct image_memory
 {
-       struct target_s *target;
+       struct target *target;
        uint8_t *cache;
        uint32_t cache_address;
 };
@@ -102,7 +102,7 @@ struct image_mot
 
 int image_open(struct image *image, const char *url, const char *type_string);
 int image_read_section(struct image *image, int section, uint32_t offset,
-               uint32_t size, uint8_t *buffer, uint32_t *size_read);
+               uint32_t size, uint8_t *buffer, size_t *size_read);
 void image_close(struct image *image);
 
 int image_add_section(struct image *image, uint32_t base, uint32_t size,