Define the values in the source file rather than in the header.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3599 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2003-06-22 22:55:21 +00:00
parent 17750c7774
commit 242a2cbef2
2 changed files with 67 additions and 21 deletions

View File

@ -6,36 +6,44 @@
#ifndef _DISK_DEVICE_TYPES_H
#define _DISK_DEVICE_TYPES_H
#ifdef __cplusplus
extern "C" {
#endif
// Device Types
const char *kDeviceTypeFloppyDisk = "Floppy Disk Media";
const char *kDeviceTypeHardDisk = "Hard Disk Media";
const char *kDeviceTypeOptical = "Optical Media";
extern const char *kDeviceTypeFloppyDisk;
extern const char *kDeviceTypeHardDisk;
extern const char *kDeviceTypeOptical;
// Partition types
const char *kPartitionTypeUnrecognized = "Unrecognized";
extern const char *kPartitionTypeUnrecognized;
const char *kPartitionTypeMultisession = "Multisession Storage Device";
extern const char *kPartitionTypeMultisession;
const char *kPartitionTypeCDDA = "Compact Disc Audio Session";
extern const char *kPartitionTypeCDDA;
const char *kPartitionTypeAmiga = "Amiga Partition Map";
const char *kPartitionTypeApple = "Apple Partition Map";
const char *kPartitionTypeIntel = "Intel Partition Map";
extern const char *kPartitionTypeAmiga;
extern const char *kPartitionTypeApple;
extern const char *kPartitionTypeIntel;
const char *kPartitionTypeIntelPrimary = "Intel Primary Partition";
const char *kPartitionTypeIntelExtended = "Intel Extended Partition";
const char *kPartitionTypeIntelLogical = "Intel Logical Partition";
extern const char *kPartitionTypeIntelPrimary;
extern const char *kPartitionTypeIntelExtended;
extern const char *kPartitionTypeIntelLogical;
const char *kPartitionTypeAmigaFFS = "AmigaFFS Filesystem";
const char *kPartitionTypeBFS = "BFS Filesystem";
const char *kPartitionTypeEXT2 = "EXT2 Filesystem";
const char *kPartitionTypeEXT3 = "EXT3 Filesystem";
const char *kPartitionTypeFAT12 = "FAT12 Filesystem";
const char *kPartitionTypeFAT32 = "FAT32 Filesystem";
const char *kPartitionTypeISO9660 = "ISO9660 Filesystem";
const char *kPartitionTypeReiser = "Reiser Filesystem";
const char *kPartitionTypeUDF = "UDF Filesystem";
extern const char *kPartitionTypeAmigaFFS;
extern const char *kPartitionTypeBFS;
extern const char *kPartitionTypeEXT2;
extern const char *kPartitionTypeEXT3;
extern const char *kPartitionTypeFAT12;
extern const char *kPartitionTypeFAT32;
extern const char *kPartitionTypeISO9660;
extern const char *kPartitionTypeReiser;
extern const char *kPartitionTypeUDF;
#ifdef __cplusplus
}
#endif
#endif // _DISK_DEVICE_TYPES_H

View File

@ -0,0 +1,38 @@
//----------------------------------------------------------------------
// This software is part of the OpenBeOS distribution and is covered
// by the OpenBeOS license.
//---------------------------------------------------------------------
#include <DiskDeviceTypes.h>
// Device Types
const char *kDeviceTypeFloppyDisk = "Floppy Disk Media";
const char *kDeviceTypeHardDisk = "Hard Disk Media";
const char *kDeviceTypeOptical = "Optical Media";
// Partition types
const char *kPartitionTypeUnrecognized = "Unrecognized";
const char *kPartitionTypeMultisession = "Multisession Storage Device";
const char *kPartitionTypeCDDA = "Compact Disc Audio Session";
const char *kPartitionTypeAmiga = "Amiga Partition Map";
const char *kPartitionTypeApple = "Apple Partition Map";
const char *kPartitionTypeIntel = "Intel Partition Map";
const char *kPartitionTypeIntelPrimary = "Intel Primary Partition";
const char *kPartitionTypeIntelExtended = "Intel Extended Partition";
const char *kPartitionTypeIntelLogical = "Intel Logical Partition";
const char *kPartitionTypeAmigaFFS = "AmigaFFS Filesystem";
const char *kPartitionTypeBFS = "BFS Filesystem";
const char *kPartitionTypeEXT2 = "EXT2 Filesystem";
const char *kPartitionTypeEXT3 = "EXT3 Filesystem";
const char *kPartitionTypeFAT12 = "FAT12 Filesystem";
const char *kPartitionTypeFAT32 = "FAT32 Filesystem";
const char *kPartitionTypeISO9660 = "ISO9660 Filesystem";
const char *kPartitionTypeReiser = "Reiser Filesystem";
const char *kPartitionTypeUDF = "UDF Filesystem";