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