summaryrefslogtreecommitdiffstats
path: root/src/image.h
diff options
context:
space:
mode:
authorPali Rohár <pali.rohar@gmail.com>2012-08-07 14:53:52 +0200
committerPali Rohár <pali.rohar@gmail.com>2012-08-07 14:53:52 +0200
commitb596e979266e71223d2e885625f1eee688dbe3d9 (patch)
tree356284bd657bd8911fa4f10154227343865193ec /src/image.h
parent589443a35669d5be37aa61734d53b7348b37694a (diff)
download0xFFFF-b596e979266e71223d2e885625f1eee688dbe3d9.tar.bz2
Compile fixes
Diffstat (limited to 'src/image.h')
-rw-r--r--src/image.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/image.h b/src/image.h
index 24b29dc..f4981c9 100644
--- a/src/image.h
+++ b/src/image.h
@@ -4,6 +4,7 @@
#define IMAGE_H
#include <stdint.h>
+#include <sys/types.h>
enum image_type {
IMAGE_UNKNOWN = 0,
@@ -43,18 +44,18 @@ struct image {
int shared_fd;
off_t offset;
off_t cur;
-}
+};
struct image_list {
struct image * image;
struct image_list * prev;
struct image_list * next;
-}
+};
struct image * image_alloc_from_file(const char * file, const char * type, const char * device, const char * hwrevs, const char * version, const char * layout);
-struct image * image_alloc_from_fiasco(struct fiasco * fiasco, size_t size, size_t offset, uint16_t hash, const char * type, const char * device, const char * hwrevs, const char * version, const char * layout);
+struct image * image_alloc_from_shared_fd(int fd, size_t size, size_t offset, uint16_t hash, const char * type, const char * device, const char * hwrevs, const char * version, const char * layout);
void image_free(struct image * image);
-void image_seek(struct image * image, whence);
+void image_seek(struct image * image, off_t whence);
size_t image_read(struct image * image, void * buf, size_t count);
/*size_t image_write(struct image * image, void * buf, size_t count);*/
void image_list_add(struct image_list ** list, struct image * image);