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