summaryrefslogtreecommitdiffstats
path: root/tools/updater.hpp
diff options
context:
space:
mode:
authorPatrick Venture <venture@google.com>2018-12-11 18:47:13 -0800
committerPatrick Venture <venture@google.com>2018-12-12 09:38:08 -0800
commita658636f901438d983cb78ecb0914dd83e40d4a3 (patch)
tree8df5a00f1d393b75c77fe582fc6c4c516977648b /tools/updater.hpp
parentcf2d1b10a416b84f7245ccc2538a8407652f2254 (diff)
downloadphosphor-ipmi-flash-a658636f901438d983cb78ecb0914dd83e40d4a3.tar.gz
phosphor-ipmi-flash-a658636f901438d983cb78ecb0914dd83e40d4a3.zip
tools: move interface building into main
Move interface building into the main method to simplify processing and input further down the call stack. Change-Id: Ib14827bfe8c4ea89a04a7c201fdff9d538546ef5 Signed-off-by: Patrick Venture <venture@google.com>
Diffstat (limited to 'tools/updater.hpp')
-rw-r--r--tools/updater.hpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/updater.hpp b/tools/updater.hpp
index 0f32363..331b3a2 100644
--- a/tools/updater.hpp
+++ b/tools/updater.hpp
@@ -1,6 +1,7 @@
#pragma once
#include "blob_interface.hpp"
+#include "interface.hpp"
#include <string>
@@ -8,10 +9,10 @@
* Attempt to update the BMC's firmware using the interface provided.
*
* @param[in] blob - pointer to blob interface implementation object.
- * @param[in] interface - the interface to use.
+ * @param[in] handler - pointer to the data interface implementation object.
* @param[in] imagePath - the path to the image file.
* @param[in] signaturePath - the path to the signature file.
* @return non-zero on failure.
*/
-int updaterMain(BlobInterface* blob, const std::string& interface,
+int updaterMain(BlobInterface* blob, DataInterface* handler,
const std::string& imagePath, const std::string& signaturePath);
OpenPOWER on IntegriCloud