summaryrefslogtreecommitdiffstats
path: root/stub_ui.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--stub_ui.h16
1 files changed, 10 insertions, 6 deletions
diff --git a/stub_ui.h b/stub_ui.h
index 1f6b29acb..2ccd49115 100644
--- a/stub_ui.h
+++ b/stub_ui.h
@@ -17,6 +17,10 @@
#ifndef RECOVERY_STUB_UI_H
#define RECOVERY_STUB_UI_H
+#include <functional>
+#include <string>
+#include <vector>
+
#include "ui.h"
// Stub implementation of RecoveryUI for devices without screen.
@@ -51,15 +55,15 @@ class StubRecoveryUI : public RecoveryUI {
va_end(ap);
}
void PrintOnScreenOnly(const char* /* fmt */, ...) override {}
- void ShowFile(const char* /* filename */) override {}
+ void ShowFile(const std::string& /* filename */) override {}
// menu display
- void StartMenu(const char* const* /* headers */, const char* const* /* items */,
- int /* initial_selection */) override {}
- int SelectMenu(int sel) override {
- return sel;
+ size_t ShowMenu(const std::vector<std::string>& /* headers */,
+ const std::vector<std::string>& /* items */, size_t initial_selection,
+ bool /* menu_only */,
+ const std::function<int(int, bool)>& /* key_handler */) override {
+ return initial_selection;
}
- void EndMenu() override {}
};
#endif // RECOVERY_STUB_UI_H