From c0f499b594b158bdb6c61764c27729fef6837cd3 Mon Sep 17 00:00:00 2001 From: Patrick Venture Date: Fri, 14 Sep 2018 17:57:42 -0700 Subject: 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 --- main.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'main.cpp') diff --git a/main.cpp b/main.cpp index e7c1247..a28a232 100644 --- a/main.cpp +++ b/main.cpp @@ -26,6 +26,10 @@ #include #include +#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(); + +#if ENABLE_EXAMPLE + manager->registerHandler(std::move(std::make_unique())); +#endif } } // namespace blobs -- cgit v1.2.3