summaryrefslogtreecommitdiffstats
path: root/private/install.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--private/install.h (renamed from applypatch/utils.h)19
1 files changed, 8 insertions, 11 deletions
diff --git a/applypatch/utils.h b/private/install.h
index bc97f1720..12d303b01 100644
--- a/applypatch/utils.h
+++ b/private/install.h
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2009 The Android Open Source Project
+ * Copyright (C) 2017 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -14,17 +14,14 @@
* limitations under the License.
*/
-#ifndef _BUILD_TOOLS_APPLYPATCH_UTILS_H
-#define _BUILD_TOOLS_APPLYPATCH_UTILS_H
+// Private headers exposed for testing purpose only.
-#include <stdio.h>
+#pragma once
-// Read and write little-endian values of various sizes.
+#include <string>
+#include <vector>
-void Write4(int value, FILE* f);
-void Write8(long long value, FILE* f);
-int Read2(void* p);
-int Read4(void* p);
-long long Read8(void* p);
+#include <ziparchive/zip_archive.h>
-#endif // _BUILD_TOOLS_APPLYPATCH_UTILS_H
+int update_binary_command(const std::string& path, ZipArchiveHandle zip, int retry_count,
+ int status_fd, std::vector<std::string>* cmd);