* <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
@@ -0,0 +1,46 @@
/*
* Copyright 2009, Ingo Weinhold, [email protected].
* Distributed under the terms of the MIT License.
*
* Disk device type macros for kernel and boot loader. In userland use
* <DiskDeviceTypes.h>.
*/
#ifndef _SYSTEM_DISK_DEVICE_TYPES_H
#define _SYSTEM_DISK_DEVICE_TYPES_H
// Device Types
#define FLOPPY_DEVICE_NAME "Floppy Disk Media"
#define HARD_DISK_DEVICE_NAME "Hard Disk Media"
#define OPTICAL_DEVICE_NAME "Optical Media"
// Partition types
#define UNRECOGNIZED_PARTITION_NAME "Unrecognized"
#define MULTISESSION_PARTITION_NAME "Multisession Storage Device"
#define AUDIO_SESSION_PARTITION_NAME "Audio Session"
#define DATA_SESSION_PARTITION_NAME "Data Session"
#define AMIGA_PARTITION_NAME "Amiga Partition Map"
#define APPLE_PARTITION_NAME "Apple Partition Map"
#define EFI_PARTITION_NAME "EFI GUID Partition Map"
#define INTEL_PARTITION_NAME "Intel Partition Map"
#define INTEL_EXTENDED_PARTITION_NAME "Intel Extended Partition"
#define VMDK_PARTITION_NAME "VMDK Partition"
#define AMIGA_FFS_NAME "AmigaFFS File System"
#define BFS_NAME "Be File System"
#define EXT2_FS_NAME "EXT2 File System"
#define EXT3_FS_NAME "EXT3 File System"
#define FAT12_FS_NAME "FAT12 File System"
#define FAT32_FS_NAME "FAT32 File System"
#define HFS_NAME "HFS File System"
#define HFS_PLUS_NAME "HFS+ File System"
#define ISO9660_FS_NAME "ISO9660 File System"
#define REISER_FS_NAME "Reiser File System"
#define UDF_FS_NAME "UDF File System"
#endif // _SYSTEM_DISK_DEVICE_TYPES_H