tools: start implementing blob interface
Start implementing blob interface to handle sending BLOB protocol
commands.
Change-Id: I9eeb6c1b6f49d9b0332e156e02476e2b07850d64
Signed-off-by: Patrick Venture <venture@google.com>
diff --git a/tools/main.cpp b/tools/main.cpp
index 7bbf380..07a169b 100644
--- a/tools/main.cpp
+++ b/tools/main.cpp
@@ -14,12 +14,14 @@
* limitations under the License.
*/
+#include "blob_handler.hpp"
#include "updater.hpp"
/* Use CLI11 argument parser once in openbmc/meta-oe or whatever. */
#include <getopt.h>
#include <cstdio>
+#include <memory>
#include <string>
void usage(const char* program)
@@ -104,8 +106,10 @@
exit(EXIT_FAILURE);
}
+ BlobHandler blob;
+
/* The parameters are all filled out. */
- return updaterMain(interface, imagePath, signaturePath);
+ return updaterMain(&blob, interface, imagePath, signaturePath);
}
return 0;