From 5c4b17b2c5ae15bfcb92447151863c4ad67f40fa Mon Sep 17 00:00:00 2001 From: Patrick Venture Date: Thu, 4 Oct 2018 10:32:22 -0700 Subject: new command: BmcBlobWriteMeta Implement new command BmcBlobWriteMeta. Change-Id: I2e148f4bde4ef5d24db7e30bb02bdde024d9166a Signed-off-by: Patrick Venture --- blobs-ipmid/blobs.hpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'blobs-ipmid/blobs.hpp') diff --git a/blobs-ipmid/blobs.hpp b/blobs-ipmid/blobs.hpp index b6672b7..0014fd4 100644 --- a/blobs-ipmid/blobs.hpp +++ b/blobs-ipmid/blobs.hpp @@ -105,6 +105,17 @@ class GenericBlobInterface virtual bool write(uint16_t session, uint32_t offset, const std::vector& data) = 0; + /** + * Attempt to write metadata to a blob. + * + * @param[in] session - the session id. + * @param[in] offset - offset into the blob. + * @param[in] data - the data to write. + * @return bool - was able to write. + */ + virtual bool writeMeta(uint16_t session, uint32_t offset, + const std::vector& data) = 0; + /** * Attempt to commit to a blob. * -- cgit v1.2.3