From efca333730842f0abd7f08dcac81ae9e95ee19f6 Mon Sep 17 00:00:00 2001 From: Daniel Zheng Date: Thu, 30 Mar 2023 15:39:14 -0700 Subject: [PATCH] Added forward declaration for compilation Test: tested compilation Change-Id: I7165e323574ef8f3f90d1540c4a2b6a991803b40 --- fastboot/fastboot.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/fastboot/fastboot.h b/fastboot/fastboot.h index 009b3a11e..b3dc67dc2 100644 --- a/fastboot/fastboot.h +++ b/fastboot/fastboot.h @@ -32,6 +32,7 @@ #include "fastboot_driver_interface.h" #include "filesystem.h" #include "super_flash_helper.h" +#include "task.h" #include "util.h" #include @@ -131,6 +132,19 @@ void reboot_to_userspace_fastboot(); void syntax_error(const char* fmt, ...); std::string get_current_slot(); +// Code for Parsing fastboot-info.txt +std::unique_ptr ParseFlashCommand(const FlashingPlan* fp, + const std::vector& parts); +std::unique_ptr ParseRebootCommand(const FlashingPlan* fp, + const std::vector& parts); +std::unique_ptr ParseWipeCommand(const FlashingPlan* fp, + const std::vector& parts); +std::unique_ptr ParseFastbootInfoLine(const FlashingPlan* fp, + const std::vector& command); +void AddResizeTasks(const FlashingPlan* fp, std::vector>& tasks); +std::vector> ParseFastbootInfo(const FlashingPlan* fp, + const std::vector& file); + struct NetworkSerial { Socket::Protocol protocol; std::string address;