main: Add empty implementation
Add empty implementation of blob handler. Boiler-plate with all methods
returning false.
Change-Id: Id7c004262c1402a18753a6d84cddecf3d1bdbf5d
Signed-off-by: Patrick Venture <venture@google.com>
diff --git a/main.cpp b/main.cpp
new file mode 100644
index 0000000..127d37b
--- /dev/null
+++ b/main.cpp
@@ -0,0 +1,22 @@
+#include "firmware_handler.hpp"
+
+#include <blobs-ipmid/manager.hpp>
+#include <memory>
+#include <phosphor-logging/log.hpp>
+
+namespace blobs
+{
+using namespace phosphor::logging;
+
+void setupFirmwareHandler() __attribute__((constructor));
+
+void setupFirmwareHandler()
+{
+ auto* manager = getBlobManager();
+ if (!manager->registerHandler(std::make_unique<FirmwareBlobHandler>()))
+ {
+ log<level::ERR>("Failed to register Firmware Handler");
+ }
+}
+
+} // namespace blobs