From 8dd184dc16dfa50ecb3dec533469e4e17b4212cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Mon, 16 Aug 2004 15:21:23 +0000 Subject: [PATCH] Added (empty) missing video and menu functions to make the boot loader build again. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8591 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kernel/boot/platform/openfirmware/Jamfile | 1 + .../boot/platform/openfirmware/menu.cpp | 42 +++++++++++++++++++ .../boot/platform/openfirmware/video.cpp | 10 ++++- 3 files changed, 52 insertions(+), 1 deletion(-) create mode 100644 src/kernel/boot/platform/openfirmware/menu.cpp diff --git a/src/kernel/boot/platform/openfirmware/Jamfile b/src/kernel/boot/platform/openfirmware/Jamfile index a71c38c672..f6d3b02554 100644 --- a/src/kernel/boot/platform/openfirmware/Jamfile +++ b/src/kernel/boot/platform/openfirmware/Jamfile @@ -11,6 +11,7 @@ KernelMergeObject boot_platform_openfirmware.o : <$(SOURCE_GRIST)>console.cpp <$(SOURCE_GRIST)>heap.cpp <$(SOURCE_GRIST)>video.cpp + <$(SOURCE_GRIST)>menu.cpp : : boot_platform_openfirmware_$(OBOS_ARCH).a ; diff --git a/src/kernel/boot/platform/openfirmware/menu.cpp b/src/kernel/boot/platform/openfirmware/menu.cpp new file mode 100644 index 0000000000..cce6798d5c --- /dev/null +++ b/src/kernel/boot/platform/openfirmware/menu.cpp @@ -0,0 +1,42 @@ +/* +** Copyright 2004, Axel Dörfler, axeld@pinc-software.de. All rights reserved. +** Distributed under the terms of the Haiku License. +*/ + + +#include +#include + + +void +platform_add_menus(Menu *menu) +{ + // ToDo: implement me! + + switch (menu->Type()) { + case MAIN_MENU: + break; + case SAFE_MODE_MENU: + break; + default: + break; + } +} + + +void +platform_update_menu_item(Menu *menu, MenuItem *item) +{ + if (menu->IsHidden()) + return; + + // ToDo: implement me! +} + + +void +platform_run_menu(Menu *menu) +{ + // ToDo: implement me! +} + diff --git a/src/kernel/boot/platform/openfirmware/video.cpp b/src/kernel/boot/platform/openfirmware/video.cpp index a65fcd3c06..3bc6dc453b 100644 --- a/src/kernel/boot/platform/openfirmware/video.cpp +++ b/src/kernel/boot/platform/openfirmware/video.cpp @@ -1,6 +1,6 @@ /* ** Copyright 2004, Axel Dörfler, axeld@pinc-software.de. All rights reserved. -** Distributed under the terms of the OpenBeOS License. +** Distributed under the terms of the Haiku License. */ @@ -20,3 +20,11 @@ platform_switch_to_text_mode(void) // ToDo: implement me } + +extern "C" status_t +platform_init_video(void) +{ + // ToDo: implement me + return B_OK; +} +