summaryrefslogtreecommitdiff
path: root/aosp/apex_handler_interface.h
diff options
context:
space:
mode:
authorMohammad Samiul Islam <samiul@google.com>2021-02-26 14:04:17 +0000
committerMohammad Islam <samiul@google.com>2021-03-17 12:50:13 +0000
commitb0ab865e4a4a7981b8dc316738ca002f9bbe4a46 (patch)
tree2d5efc8796f00d5744cf0390841c6ebdf8eefbf8 /aosp/apex_handler_interface.h
parentebd115e8bd045dfd05889e3574d5a02e7b53b2be (diff)
Make update_engine reserve space for decompression via apexd
Bug: 172911822 Test: atest ApexHandlerAndroidTest (checked that file was created) Change-Id: I8024695ebba1a9c1796c05b27a0eec3da3b3d1bc
Diffstat (limited to 'aosp/apex_handler_interface.h')
-rw-r--r--aosp/apex_handler_interface.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/aosp/apex_handler_interface.h b/aosp/apex_handler_interface.h
index c3399b61..b9b6c96f 100644
--- a/aosp/apex_handler_interface.h
+++ b/aosp/apex_handler_interface.h
@@ -19,6 +19,8 @@
#include <vector>
+#include <android-base/result.h>
+
#include "update_engine/update_metadata.pb.h"
namespace chromeos_update_engine {
@@ -26,9 +28,9 @@ namespace chromeos_update_engine {
class ApexHandlerInterface {
public:
virtual ~ApexHandlerInterface() = default;
- virtual uint64_t CalculateSize(
+ virtual android::base::Result<uint64_t> CalculateSize(
const std::vector<ApexInfo>& apex_infos) const = 0;
- virtual bool AllocateSpace(const uint64_t size_required) const = 0;
+ virtual bool AllocateSpace(const std::vector<ApexInfo>& apex_infos) const = 0;
};
} // namespace chromeos_update_engine