summaryrefslogtreecommitdiffstats
path: root/stub_ui.h
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2018-05-02 00:56:05 +0200
committerTao Bao <tbao@google.com>2018-05-03 21:31:18 +0200
commit1fe1afe863fde957051774cf2d9936c314d342a2 (patch)
tree40ece1d1f510c39df717316764c23c1c88b0630c /stub_ui.h
parentMerge "updater_sample: update ui and README, clean-up" (diff)
downloadandroid_bootable_recovery-1fe1afe863fde957051774cf2d9936c314d342a2.tar
android_bootable_recovery-1fe1afe863fde957051774cf2d9936c314d342a2.tar.gz
android_bootable_recovery-1fe1afe863fde957051774cf2d9936c314d342a2.tar.bz2
android_bootable_recovery-1fe1afe863fde957051774cf2d9936c314d342a2.tar.lz
android_bootable_recovery-1fe1afe863fde957051774cf2d9936c314d342a2.tar.xz
android_bootable_recovery-1fe1afe863fde957051774cf2d9936c314d342a2.tar.zst
android_bootable_recovery-1fe1afe863fde957051774cf2d9936c314d342a2.zip
Diffstat (limited to 'stub_ui.h')
-rw-r--r--stub_ui.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/stub_ui.h b/stub_ui.h
index 362aab443..2ccd49115 100644
--- a/stub_ui.h
+++ b/stub_ui.h
@@ -19,6 +19,7 @@
#include <functional>
#include <string>
+#include <vector>
#include "ui.h"
@@ -57,9 +58,10 @@ class StubRecoveryUI : public RecoveryUI {
void ShowFile(const std::string& /* filename */) override {}
// menu display
- int ShowMenu(const char* const* /* headers */, const char* const* /* items */,
- int initial_selection, bool /* menu_only */,
- const std::function<int(int, bool)>& /* key_handler */) override {
+ 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;
}
};