Changing flashall to parse fastboot-info.txt

Test: tested on Raven
Change-Id: I9f26bf6025a0a6318f84be929091f4e82bd87556
diff --git a/fastboot/fastboot.h b/fastboot/fastboot.h
index 6462a4f..7c44bd8 100644
--- a/fastboot/fastboot.h
+++ b/fastboot/fastboot.h
@@ -83,6 +83,7 @@
     std::string slot_override;
     std::string current_slot;
     std::string secondary_slot;
+
     fastboot::FastBootDriver* fb;
 };
 
@@ -94,6 +95,7 @@
 std::string find_item(const std::string& item);
 void reboot_to_userspace_fastboot();
 void syntax_error(const char* fmt, ...);
+std::string get_current_slot();
 
 struct NetworkSerial {
     Socket::Protocol protocol;
@@ -103,7 +105,7 @@
 
 Result<NetworkSerial, FastbootError> ParseNetworkSerial(const std::string& serial);
 bool supports_AB();
-std::string GetPartitionName(const ImageEntry& entry, std::string& current_slot_);
+std::string GetPartitionName(const ImageEntry& entry, const std::string& current_slot_);
 void flash_partition_files(const std::string& partition, const std::vector<SparsePtr>& files);
 int64_t get_sparse_limit(int64_t size);
 std::vector<SparsePtr> resparse_file(sparse_file* s, int64_t max_size);