summaryrefslogtreecommitdiffstats
path: root/libflashrom.h
diff options
context:
space:
mode:
authorNico Huber <nico.huber@secunet.com>2017-06-19 12:35:24 +0200
committerNico Huber <nico.h@gmx.de>2017-06-20 13:25:46 +0200
commit1b172f2da5573bd8b1732921af1b25a2cc739572 (patch)
tree95f3a22dde7fd1d784d07304716c547a5b4f94e0 /libflashrom.h
parent560111e2ce506b75b112f0d10b5f9b99f007bfa5 (diff)
downloadflashrom-1b172f2da5573bd8b1732921af1b25a2cc739572.tar.gz
flashrom-1b172f2da5573bd8b1732921af1b25a2cc739572.tar.bz2
flashrom-1b172f2da5573bd8b1732921af1b25a2cc739572.zip
fixup! Add a convenient libflashrom interface
The buffer passed to flashrom_image_write() isn't `const`. It might be altered for full verification (with mixed contents if a layout is being used). Change-Id: Ibd8a9579e5dd859ae03b0deb3042b7035719e5de Signed-off-by: Nico Huber <nico.huber@secunet.com> Reviewed-on: https://review.coreboot.org/20266 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: David Hendricks <david.hendricks@gmail.com>
Diffstat (limited to 'libflashrom.h')
-rw-r--r--libflashrom.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libflashrom.h b/libflashrom.h
index 1937194fc..09a88c412 100644
--- a/libflashrom.h
+++ b/libflashrom.h
@@ -59,7 +59,7 @@ void flashrom_flag_set(struct flashrom_flashctx *, enum flashrom_flag, bool valu
bool flashrom_flag_get(const struct flashrom_flashctx *, enum flashrom_flag);
int flashrom_image_read(struct flashrom_flashctx *, void *buffer, size_t buffer_len);
-int flashrom_image_write(struct flashrom_flashctx *, const void *buffer, size_t buffer_len);
+int flashrom_image_write(struct flashrom_flashctx *, void *buffer, size_t buffer_len);
int flashrom_image_verify(struct flashrom_flashctx *, const void *buffer, size_t buffer_len);
struct flashrom_layout;