blob: 127d37b066b2291e00bd4cdce0cad78b6065bbd0 [file] [log] [blame]
#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