1 /* 2 * Copyright 2008-2010, François Revol, revol@free.fr. All rights reserved. 3 * Copyright 2004-2007, Axel Dörfler, axeld@pinc-software.de. All rights reserved. 4 * Distributed under the terms of the MIT License. 5 */ 6 7 8 #include "smp.h" 9 #include "video.h" 10 11 #include <boot/menu.h> 12 #include <boot/platform/generic/text_menu.h> 13 #include <safemode.h> 14 15 16 void 17 platform_add_menus(Menu *menu) 18 { 19 MenuItem *item; 20 21 switch (menu->Type()) { 22 case MAIN_MENU: 23 break; 24 case SAFE_MODE_MENU: 25 break; 26 default: 27 break; 28 } 29 } 30 31 32 void 33 platform_update_menu_item(Menu *menu, MenuItem *item) 34 { 35 platform_generic_update_text_menu_item(menu, item); 36 } 37 38 39 void 40 platform_run_menu(Menu *menu) 41 { 42 platform_generic_run_text_menu(menu); 43 } 44 45 46 size_t 47 platform_get_user_input_text(Menu *menu, MenuItem *item, char *buffer, 48 size_t bufferSize) 49 { 50 return platform_generic_get_user_input_text(menu, item, buffer, 51 bufferSize); 52 } 53