Added "Disable IDE DMA" safemode option.

MenuItem::SetData() now asks for a const parameter.
The safemode menu options now set their MenuItem::Data() to the safemode option string.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12191 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2005-03-31 15:16:09 +00:00
parent a350a0f58e
commit 2d7ad656ec
2 changed files with 16 additions and 10 deletions
+6 -6
View File
@@ -1,7 +1,7 @@
/*
** Copyright 2004, Axel Dörfler, [email protected]. All rights reserved.
** Distributed under the terms of the Haiku License.
*/
* Copyright 2004-2005, Axel Dörfler, [email protected]. All rights reserved.
* Distributed under the terms of the MIT License.
*/
#ifndef KERNEL_BOOT_MENU_H
#define KERNEL_BOOT_MENU_H
@@ -43,8 +43,8 @@ class MenuItem : public DoublyLinkedListLinkImpl<MenuItem> {
void SetType(menu_item_type type);
menu_item_type Type() const { return fType; }
void SetData(void *data);
void *Data() const { return fData; }
void SetData(const void *data);
const void *Data() const { return fData; }
void SetHelpText(const char *text);
const char *HelpText() const { return fHelpText; }
@@ -63,7 +63,7 @@ class MenuItem : public DoublyLinkedListLinkImpl<MenuItem> {
bool fIsEnabled;
menu_item_type fType;
Menu *fMenu, *fSubMenu;
void *fData;
const void *fData;
const char *fHelpText;
};