blob: b3ab947d2420b3b8b3ee069d0358bf3a50ffb311 [file] [log] [blame]
Patrick Venturebf58cd62018-12-11 09:05:46 -08001#pragma once
2
Patrick Venture01123b22019-06-20 13:49:06 -07003#include "handler.hpp"
Patrick Venture00887592018-12-11 10:57:06 -08004
Patrick Venture664c5bc2019-03-07 08:09:45 -08005#include <ipmiblob/blob_interface.hpp>
Patrick Venturebf58cd62018-12-11 09:05:46 -08006#include <string>
7
Patrick Venture9b534f02018-12-13 16:10:02 -08008namespace host_tool
9{
10
Patrick Ventured61b0ff2019-05-15 15:58:06 -070011/**
Patrick Venturebf58cd62018-12-11 09:05:46 -080012 * Attempt to update the BMC's firmware using the interface provided.
13 *
Patrick Venture55646de2019-05-16 10:06:26 -070014 * @param[in] updater - update handler object.
Patrick Venturebf58cd62018-12-11 09:05:46 -080015 * @param[in] imagePath - the path to the image file.
16 * @param[in] signaturePath - the path to the signature file.
Patrick Venture2bc23fe2018-12-13 10:16:36 -080017 * @throws ToolException on failures.
Patrick Venturebf58cd62018-12-11 09:05:46 -080018 */
Patrick Venture1f09d412019-06-19 16:01:06 -070019void updaterMain(UpdateHandlerInterface* updater, const std::string& imagePath,
Patrick Venture2bc23fe2018-12-13 10:16:36 -080020 const std::string& signaturePath);
Patrick Venture9b534f02018-12-13 16:10:02 -080021
22} // namespace host_tool