blob: 127d37b066b2291e00bd4cdce0cad78b6065bbd0 [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();
16 if (!manager->registerHandler(std::make_unique<FirmwareBlobHandler>()))
17 {
18 log<level::ERR>("Failed to register Firmware Handler");
19 }
20}
21
22} // namespace blobs