blob: implement commit command
Implement the commit command for the blob handler.
Change-Id: Ia3be86083991cbdf7fe85c15986f4e1cb60971f5
Signed-off-by: Patrick Venture <venture@google.com>
diff --git a/src/ipmiblob/blob_interface.hpp b/src/ipmiblob/blob_interface.hpp
index ece5c34..989d461 100644
--- a/src/ipmiblob/blob_interface.hpp
+++ b/src/ipmiblob/blob_interface.hpp
@@ -20,6 +20,16 @@
virtual ~BlobInterface() = default;
/**
+ * Call commit on a blob. The behavior here is up to the blob itself.
+ *
+ * @param[in] session - the session id.
+ * @param[in] bytes - the bytes to send.
+ * @throws BlobException on failure.
+ */
+ virtual void commit(std::uint16_t session,
+ const std::vector<std::uint8_t>& bytes) = 0;
+
+ /**
* Write metadata to a blob.
*
* @param[in] session - the session id.