diff options
author | Tao Bao <tbao@google.com> | 2016-11-29 06:26:08 +0100 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2016-11-29 06:26:08 +0100 |
commit | 6a8e0eb1640a2b304b9ce7cc554c65aa17b28bbc (patch) | |
tree | 6e8e74b605a83961b788ebdbd641754d3f78a317 /otafault/ota_io.h | |
parent | Merge "tests: Add testcases for EMMC targets." am: d226f28e87 (diff) | |
parent | Merge "Add ota_close(unique_fd&) and ota_fclose(std::unique_ptr<FILE>&)." (diff) | |
download | android_bootable_recovery-6a8e0eb1640a2b304b9ce7cc554c65aa17b28bbc.tar android_bootable_recovery-6a8e0eb1640a2b304b9ce7cc554c65aa17b28bbc.tar.gz android_bootable_recovery-6a8e0eb1640a2b304b9ce7cc554c65aa17b28bbc.tar.bz2 android_bootable_recovery-6a8e0eb1640a2b304b9ce7cc554c65aa17b28bbc.tar.lz android_bootable_recovery-6a8e0eb1640a2b304b9ce7cc554c65aa17b28bbc.tar.xz android_bootable_recovery-6a8e0eb1640a2b304b9ce7cc554c65aa17b28bbc.tar.zst android_bootable_recovery-6a8e0eb1640a2b304b9ce7cc554c65aa17b28bbc.zip |
Diffstat (limited to '')
-rw-r--r-- | otafault/ota_io.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/otafault/ota_io.h b/otafault/ota_io.h index e119eef08..45d17b1bb 100644 --- a/otafault/ota_io.h +++ b/otafault/ota_io.h @@ -26,6 +26,8 @@ #include <stdio.h> #include <sys/stat.h> +#include <memory> + #include <android-base/unique_fd.h> #define OTAIO_CACHE_FNAME "/cache/saved.file" @@ -60,4 +62,8 @@ struct OtaCloser { using unique_fd = android::base::unique_fd_impl<OtaCloser>; +int ota_close(unique_fd& fd); + +int ota_fclose(std::unique_ptr<FILE, int (*)(FILE*)>& fh); + #endif |