diff options
author | Patrick Venture <venture@google.com> | 2018-09-14 17:57:42 -0700 |
---|---|---|
committer | Patrick Venture <venture@google.com> | 2018-09-20 18:32:40 -0700 |
commit | c0f499b594b158bdb6c61764c27729fef6837cd3 (patch) | |
tree | 5fc12741ebe4ee272383fc6d71529ea237053729 /main.cpp | |
parent | f222cf51d4801f3bda3ba1e2e57a898d3da11bb1 (diff) | |
download | phosphor-ipmi-blobs-c0f499b594b158bdb6c61764c27729fef6837cd3.tar.gz phosphor-ipmi-blobs-c0f499b594b158bdb6c61764c27729fef6837cd3.zip |
add example handler
This adds an example handler to demonstrate how one can add a specific
type of BLOB handler.
Change-Id: Ib5421f1b945b45998b40d3939a4dab9cdf39aaa9
Signed-off-by: Patrick Venture <venture@google.com>
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -26,6 +26,10 @@ #include <host-ipmid/oemrouter.hpp> #include <memory> +#if ENABLE_EXAMPLE +#include "example/example.hpp" +#endif + /* TODO: Swap out once https://gerrit.openbmc-project.xyz/12743 is merged */ namespace oem { @@ -73,5 +77,9 @@ void setupBlobGlobalHandler() handleBlobCommand); manager = std::make_unique<BlobManager>(); + +#if ENABLE_EXAMPLE + manager->registerHandler(std::move(std::make_unique<ExampleBlobHandler>())); +#endif } } // namespace blobs |