diff options
author | 2024-04-19 19:17:57 +0100 | |
---|---|---|
committer | 2024-05-02 09:50:19 +0000 | |
commit | 143bd67b70818587f96dd20e8bb9d7c2a8824def (patch) | |
tree | 27bb6eb4cdab0320cc397a77e6fb9abe7a65f508 /artd/file_utils.h | |
parent | b747d1f86ebd69e96dd5f16b744daadcec90a8be (diff) |
Implement commitPreRebootStagedFiles.
Bug: 311377497
Test: m test-art-host-gtest-art_artd_tests
Test: atest ArtServiceTests
Change-Id: Ia8900baeaa8ed4208f0ecacf454a97a72112ba95
Diffstat (limited to 'artd/file_utils.h')
-rw-r--r-- | artd/file_utils.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/artd/file_utils.h b/artd/file_utils.h index a97f52c42a..77c7ffb19c 100644 --- a/artd/file_utils.h +++ b/artd/file_utils.h @@ -20,6 +20,7 @@ #include <sys/types.h> #include <memory> +#include <string> #include <string_view> #include <utility> #include <vector> @@ -147,6 +148,11 @@ android::base::Result<void> MoveAllOrAbandon( const std::vector<std::pair<std::string_view, std::string_view>>& files_to_move, const std::vector<std::string_view>& files_to_remove = {}); +// Same as above, but takes `std::string`s. +android::base::Result<void> MoveAllOrAbandon( + const std::vector<std::pair<std::string, std::string>>& files_to_move, + const std::vector<std::string>& files_to_remove = {}); + } // namespace artd } // namespace art |