summaryrefslogtreecommitdiff
path: root/image.h
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2010-11-18 13:59:33 +0100
committerTobias Klauser <tklauser@distanz.ch>2010-11-18 13:59:33 +0100
commit6ee2297979fb8c18c3ba6161caf278b00724c47a (patch)
tree1f325b129880059bad3be6f02686aa512445525b /image.h
parentd300de817dbf4a8e0a7e797ffe2d0cfd95f9bf19 (diff)
Follow API changes...
Diffstat (limited to 'image.h')
-rw-r--r--image.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/image.h b/image.h
index 01f94c9..3df996d 100644
--- a/image.h
+++ b/image.h
@@ -4,12 +4,14 @@
#ifndef _IMAGE_H_
#define _IMAGE_H_
-extern int image_load(const char *image_path, int image_format, uint8_t *mem_base, size_t mem_size);
+#include "memory.h"
+
+extern int image_load(const char *image_path, int image_format, struct memory *mem);
/* Image file loader functions */
-typedef int (*loader_func_t)(FILE *, const char *, uint8_t *, size_t);
-extern int srec_load(FILE *fp, const char *name, uint8_t *mem_base, size_t mem_size);
-extern int elf_load(FILE *fp, const char *name, uint8_t *mem_base, size_t mem_size);
+typedef int (*loader_func_t)(FILE *, const char *, struct memory *);
+extern int srec_load(FILE *fp, const char *name, struct memory *mem);
+extern int elf_load(FILE *fp, const char *name, struct memory *mem);
enum {
FORMAT_SREC,