Patrick Venture | bf58cd6 | 2018-12-11 09:05:46 -0800 | [diff] [blame] | 1 | #pragma once |
| 2 | |
Patrick Venture | 0088759 | 2018-12-11 10:57:06 -0800 | [diff] [blame] | 3 | #include "blob_interface.hpp" |
| 4 | |
Patrick Venture | bf58cd6 | 2018-12-11 09:05:46 -0800 | [diff] [blame] | 5 | #include <string> |
| 6 | |
| 7 | /** |
| 8 | * Attempt to update the BMC's firmware using the interface provided. |
| 9 | * |
Patrick Venture | 0088759 | 2018-12-11 10:57:06 -0800 | [diff] [blame] | 10 | * @param[in] blob - pointer to blob interface implementation object. |
Patrick Venture | bf58cd6 | 2018-12-11 09:05:46 -0800 | [diff] [blame] | 11 | * @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 Venture | 0088759 | 2018-12-11 10:57:06 -0800 | [diff] [blame] | 16 | int updaterMain(BlobInterface* blob, const std::string& interface, |
| 17 | const std::string& imagePath, const std::string& signaturePath); |