blob: 886ff67cb4423d74d1f76809e04437be53376566 [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.
Patrick Venture2bc23fe2018-12-13 10:16:36 -080015 * @throws ToolException on failures.
Patrick Venturebf58cd62018-12-11 09:05:46 -080016 */
Patrick Venture2bc23fe2018-12-13 10:16:36 -080017void updaterMain(BlobInterface* blob, DataInterface* handler,
18 const std::string& imagePath,
19 const std::string& signaturePath);