summaryrefslogtreecommitdiffstats
path: root/stub_ui.h
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2018-05-04 01:21:16 +0200
committerandroid-build-merger <android-build-merger@google.com>2018-05-04 01:21:16 +0200
commit0d9ed295418d3d6e2dd7b15582b39ab583972d02 (patch)
treee4a6d12bc2aca2b7b5cffbe213780ca894e31306 /stub_ui.h
parentMerge "updater_sample: update tests" (diff)
parentMerge "Move menu headers/items to std::vector<std::string>." (diff)
downloadandroid_bootable_recovery-0d9ed295418d3d6e2dd7b15582b39ab583972d02.tar
android_bootable_recovery-0d9ed295418d3d6e2dd7b15582b39ab583972d02.tar.gz
android_bootable_recovery-0d9ed295418d3d6e2dd7b15582b39ab583972d02.tar.bz2
android_bootable_recovery-0d9ed295418d3d6e2dd7b15582b39ab583972d02.tar.lz
android_bootable_recovery-0d9ed295418d3d6e2dd7b15582b39ab583972d02.tar.xz
android_bootable_recovery-0d9ed295418d3d6e2dd7b15582b39ab583972d02.tar.zst
android_bootable_recovery-0d9ed295418d3d6e2dd7b15582b39ab583972d02.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;
}
};