diff options
author | Patrick Venture <venture@google.com> | 2018-10-04 10:32:22 -0700 |
---|---|---|
committer | Patrick Venture <venture@google.com> | 2018-10-10 15:41:50 +0000 |
commit | 5c4b17b2c5ae15bfcb92447151863c4ad67f40fa (patch) | |
tree | d2baa54371ece5d4d80c0d4f82b03691f28d20d2 /blobs-ipmid/blobs.hpp | |
parent | e225540cc7dc627c85a976fdc7ff0221b64ed937 (diff) | |
download | phosphor-ipmi-blobs-5c4b17b2c5ae15bfcb92447151863c4ad67f40fa.tar.gz phosphor-ipmi-blobs-5c4b17b2c5ae15bfcb92447151863c4ad67f40fa.zip |
new command: BmcBlobWriteMeta
Implement new command BmcBlobWriteMeta.
Change-Id: I2e148f4bde4ef5d24db7e30bb02bdde024d9166a
Signed-off-by: Patrick Venture <venture@google.com>
Diffstat (limited to 'blobs-ipmid/blobs.hpp')
-rw-r--r-- | blobs-ipmid/blobs.hpp | 11 |
1 files changed, 11 insertions, 0 deletions
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 @@ -106,6 +106,17 @@ class GenericBlobInterface const std::vector<uint8_t>& 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<uint8_t>& data) = 0; + + /** * Attempt to commit to a blob. * * @param[in] session - the session id. |