blob: 0f32363ccf4d114c54c292dbb15e55f9c0f5cb58 [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"
4
Patrick Venturebf58cd62018-12-11 09:05:46 -08005#include <string>
6
7/**
8 * Attempt to update the BMC's firmware using the interface provided.
9 *
Patrick Venture00887592018-12-11 10:57:06 -080010 * @param[in] blob - pointer to blob interface implementation object.
Patrick Venturebf58cd62018-12-11 09:05:46 -080011 * @param[in] interface - the interface to use.
12 * @param[in] imagePath - the path to the image file.
13 * @param[in] signaturePath - the path to the signature file.
14 * @return non-zero on failure.
15 */
Patrick Venture00887592018-12-11 10:57:06 -080016int updaterMain(BlobInterface* blob, const std::string& interface,
17 const std::string& imagePath, const std::string& signaturePath);