tools: blob add writeMeta to interface
Add the blob write metadata command to the interface. The LPC interface
will use write meta to configure the BMC's window.
Change-Id: I0266e62174fac428bf0fb84fb9d128451b69e4d8
Signed-off-by: Patrick Venture <venture@google.com>
diff --git a/tools/blob_handler.hpp b/tools/blob_handler.hpp
index 0114b89..3c90404 100644
--- a/tools/blob_handler.hpp
+++ b/tools/blob_handler.hpp
@@ -55,6 +55,25 @@
std::string enumerateBlob(std::uint32_t index);
/**
+ * Generic blob byte writer.
+ *
+ * @param[in] command - the command associated with this write.
+ * @param[in] session - the session id.
+ * @param[in] offset - the offset for the metadata to write.
+ * @param[in] bytes - the bytes to send.
+ * @throws BlobException on failure.
+ */
+ void writeGeneric(BlobOEMCommands command, std::uint16_t session,
+ std::uint32_t offset,
+ const std::vector<std::uint8_t>& bytes);
+
+ /**
+ * @throws BlobException.
+ */
+ void writeMeta(std::uint16_t session, std::uint32_t offset,
+ const std::vector<std::uint8_t>& bytes) override;
+
+ /**
* @throw BlobException.
*/
void writeBytes(std::uint16_t session, std::uint32_t offset,