Add DynamicPartitionControlInterface::CleanupSuccessfulUpdate
This is a wrapper over SnapshotManager::WaitForMerge. It waits until the
previous update is merged, then return.
Bug: 138808328
Test: manual with update_engine_client
Change-Id: If44854810f37dd959ffdf3f62f26528867a71fc8
diff --git a/dynamic_partition_control_android.h b/dynamic_partition_control_android.h
index a79f41a..ba23e7c 100644
--- a/dynamic_partition_control_android.h
+++ b/dynamic_partition_control_android.h
@@ -45,6 +45,7 @@
bool update,
uint64_t* required_size) override;
bool FinishUpdate() override;
+ ErrorCode CleanupSuccessfulUpdate() override;
// Return the device for partition |partition_name| at slot |slot|.
// |current_slot| should be set to the current active slot.