* <DiskDeviceTypes.h>: Removed kPartitionTypeIntel{Primary,Logical} constants.

* Added new header headers/private/system/disk_device_types.h, which defines
  the <DiskDeviceTypes.h> constants as macros and which can be used where the
  constants cannot be used. The constants are defined using the macros, so now
  there's only one place where the string literals should be specified.
* Use the macros in the partitioning systems. I was too lazy to also adjust the
  file systems -- most of them seem to hard-code the string literal yet.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33386 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2009-10-01 03:07:42 +00:00
parent a9689e8492
commit d6778355ee
17 changed files with 93 additions and 45 deletions
+2 -5
View File
@@ -1,5 +1,5 @@
/*
* Copyright 2003-2007, Haiku Inc.
* Copyright 2003-2009, Haiku Inc.
* Distributed under the terms of the MIT License.
*/
#ifndef _DISK_DEVICE_TYPES_H
@@ -16,7 +16,6 @@ extern const char *kDeviceTypeOptical;
extern const char *kPartitionTypeUnrecognized;
extern const char *kPartitionTypeMultisession;
extern const char *kPartitionTypeAudioSession;
extern const char *kPartitionTypeDataSession;
@@ -24,10 +23,8 @@ extern const char *kPartitionTypeAmiga;
extern const char *kPartitionTypeApple;
extern const char *kPartitionTypeEFI;
extern const char *kPartitionTypeIntel;
extern const char *kPartitionTypeIntelPrimary;
extern const char *kPartitionTypeIntelExtended;
extern const char *kPartitionTypeIntelLogical;
extern const char *kPartitionTypeVMDK;
extern const char *kPartitionTypeAmigaFFS;
extern const char *kPartitionTypeBFS;