Enable firmware transport mechanisms
build: Allow configuring transport mechanisms
firmware: Support receiving this currently unused information.
Change-Id: If6d83ef5fe00eabd7fd7fc932a579657c0b0a0ab
Signed-off-by: Patrick Venture <venture@google.com>
diff --git a/firmware_handler.hpp b/firmware_handler.hpp
index b206f56..f9a8983 100644
--- a/firmware_handler.hpp
+++ b/firmware_handler.hpp
@@ -1,6 +1,7 @@
#pragma once
#include <blobs-ipmid/blobs.hpp>
+#include <cstdint>
#include <memory>
#include <string>
#include <vector>
@@ -22,10 +23,13 @@
{
public:
static std::unique_ptr<GenericBlobInterface>
- CreateFirmwareBlobHandler(const std::vector<std::string>& firmwares);
+ CreateFirmwareBlobHandler(const std::vector<std::string>& firmwares,
+ std::uint32_t transports);
- explicit FirmwareBlobHandler(const std::vector<std::string>& firmwares) :
- baseFirmwares(firmwares)
+ FirmwareBlobHandler(const std::vector<std::string>& firmwares,
+ std::uint32_t transports) :
+ baseFirmwares(firmwares),
+ transports(transports)
{
}
~FirmwareBlobHandler() = default;
@@ -53,6 +57,7 @@
private:
std::vector<std::string> baseFirmwares;
+ std::uint32_t transports;
};
} // namespace blobs