diff options
author | Pali Rohár <pali.rohar@gmail.com> | 2017-06-17 23:47:10 +0200 |
---|---|---|
committer | Pali Rohár <pali.rohar@gmail.com> | 2017-06-17 23:47:10 +0200 |
commit | 5cbd5e92b878dfe1aa6c9623b21c38030c23b5ff (patch) | |
tree | 3e38f96a3bfd5dea35c4b0bfb55e4b43088e9416 /src/image.h | |
parent | 1ec3777cb89a2c19e45154ab84ea3a24f47c086d (diff) | |
download | 0xFFFF-5cbd5e92b878dfe1aa6c9623b21c38030c23b5ff.tar.bz2 |
image: Add new function image_alloc_from_fd()
Diffstat (limited to 'src/image.h')
-rw-r--r-- | src/image.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/image.h b/src/image.h index 709fef7..42111bf 100644 --- a/src/image.h +++ b/src/image.h @@ -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); |