summaryrefslogtreecommitdiffstats
path: root/otafault/ota_io.h
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2016-11-29 06:15:18 +0100
committerGerrit Code Review <noreply-gerritcodereview@google.com>2016-11-29 06:15:18 +0100
commiteed7f607cfdec23e63f6d9e456801f7097a91127 (patch)
treed9632b1264748a0a4005a5ebc84535740a7675c9 /otafault/ota_io.h
parentMerge "tests: Add testcases for EMMC targets." (diff)
parentAdd ota_close(unique_fd&) and ota_fclose(std::unique_ptr<FILE>&). (diff)
downloadandroid_bootable_recovery-eed7f607cfdec23e63f6d9e456801f7097a91127.tar
android_bootable_recovery-eed7f607cfdec23e63f6d9e456801f7097a91127.tar.gz
android_bootable_recovery-eed7f607cfdec23e63f6d9e456801f7097a91127.tar.bz2
android_bootable_recovery-eed7f607cfdec23e63f6d9e456801f7097a91127.tar.lz
android_bootable_recovery-eed7f607cfdec23e63f6d9e456801f7097a91127.tar.xz
android_bootable_recovery-eed7f607cfdec23e63f6d9e456801f7097a91127.tar.zst
android_bootable_recovery-eed7f607cfdec23e63f6d9e456801f7097a91127.zip
Diffstat (limited to 'otafault/ota_io.h')
-rw-r--r--otafault/ota_io.h6
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