Index: host/include/host_misc.h |
diff --git a/host/include/host_misc.h b/host/include/host_misc.h |
index 7e66c73cf81b78f5eef5bc113a638ccca6560fb3..49afa299faaf6be84f40f7d42d61f403f81b2c3c 100644 |
--- a/host/include/host_misc.h |
+++ b/host/include/host_misc.h |
@@ -22,4 +22,10 @@ |
uint8_t* ReadFile(const char* filename, uint64_t* size); |
+/* Writes [size] bytes of [data] to [filename]. |
+ * |
+ * Returns 0 if success, 1 if error. */ |
+int WriteFile(const char* filename, const void *data, uint64_t size); |
+ |
+ |
#endif /* VBOOT_REFERENCE_HOST_MISC_H_ */ |