blob: b7d35d199716323023aa106668e1e1e5cebfa901 [file] [log] [blame]
Patrick Venturec7ca2912018-11-02 11:38:33 -07001#include "firmware_handler.hpp"
2
3#include <blobs-ipmid/manager.hpp>
4#include <memory>
5#include <phosphor-logging/log.hpp>
6
7namespace blobs
8{
9using namespace phosphor::logging;
10
11void setupFirmwareHandler() __attribute__((constructor));
12
13void setupFirmwareHandler()
14{
15 auto* manager = getBlobManager();
Patrick Venture68cf64f2018-11-06 10:46:51 -080016 if (!manager->registerHandler(
17 FirmwareBlobHandler::CreateFirmwareBlobHandler()))
Patrick Venturec7ca2912018-11-02 11:38:33 -070018 {
19 log<level::ERR>("Failed to register Firmware Handler");
20 }
21}
22
23} // namespace blobs