blob: 331b3a2aa0a7870377543276c37e619da465c1e6 [file] [log] [blame]
Patrick Venturebf58cd62018-12-11 09:05:46 -08001#pragma once
2
Patrick Venture00887592018-12-11 10:57:06 -08003#include "blob_interface.hpp"
Patrick Venturea6586362018-12-11 18:47:13 -08004#include "interface.hpp"
Patrick Venture00887592018-12-11 10:57:06 -08005
Patrick Venturebf58cd62018-12-11 09:05:46 -08006#include <string>
7
8/**
9 * Attempt to update the BMC's firmware using the interface provided.
10 *
Patrick Venture00887592018-12-11 10:57:06 -080011 * @param[in] blob - pointer to blob interface implementation object.
Patrick Venturea6586362018-12-11 18:47:13 -080012 * @param[in] handler - pointer to the data interface implementation object.
Patrick Venturebf58cd62018-12-11 09:05:46 -080013 * @param[in] imagePath - the path to the image file.
14 * @param[in] signaturePath - the path to the signature file.
15 * @return non-zero on failure.
16 */
Patrick Venturea6586362018-12-11 18:47:13 -080017int updaterMain(BlobInterface* blob, DataInterface* handler,
Patrick Venture00887592018-12-11 10:57:06 -080018 const std::string& imagePath, const std::string& signaturePath);