diff options
Diffstat (limited to 'host/include/host_misc.h')
-rw-r--r-- | host/include/host_misc.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/host/include/host_misc.h b/host/include/host_misc.h index 7e66c73c..49afa299 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_ */ |