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 --- example/example.cpp | 7 +++++++ example/example.hpp | 2 ++ 2 files changed, 9 insertions(+) (limited to 'example') diff --git a/example/example.cpp b/example/example.cpp index c17d71d..929e4d1 100644 --- a/example/example.cpp +++ b/example/example.cpp @@ -117,6 +117,13 @@ bool ExampleBlobHandler::write(uint16_t session, uint32_t offset, return true; } +bool ExampleBlobHandler::writeMeta(uint16_t session, uint32_t offset, + const std::vector& data) +{ + /* Not supported. */ + return false; +} + bool ExampleBlobHandler::commit(uint16_t session, const std::vector& data) { diff --git a/example/example.hpp b/example/example.hpp index 85f5b17..a85c275 100644 --- a/example/example.hpp +++ b/example/example.hpp @@ -58,6 +58,8 @@ class ExampleBlobHandler : public GenericBlobInterface uint32_t requestedSize) override; bool write(uint16_t session, uint32_t offset, const std::vector& data) override; + bool writeMeta(uint16_t session, uint32_t offset, + const std::vector& data) override; bool commit(uint16_t session, const std::vector& data) override; bool close(uint16_t session) override; bool stat(uint16_t session, struct BlobMeta* meta) override; -- cgit v1.2.3