image: Add new function image_alloc_from_fd()

This commit is contained in:
Pali Rohár committed 2017-06-17 23:47:10 +02:00
1 parent 1ec3777cb8
commit 5cbd5e92b8
2 files changed
+24 -12

No files matched your search

+1
View File
@@ -64,6 +64,7 @@ struct image_list {
};
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_fd(int fd, const char * orig_filename, 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, size_t whence);