From 6bd5253e85668c2e9b845a338cb6245648fdeafa Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Sun, 6 Jul 2003 22:51:42 +0000 Subject: [PATCH] This is the header for global definitions shared by the Disk Device API and the disk device manager. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3878 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/private/storage/DiskDeviceDefs.h | 40 ++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 headers/private/storage/DiskDeviceDefs.h diff --git a/headers/private/storage/DiskDeviceDefs.h b/headers/private/storage/DiskDeviceDefs.h new file mode 100644 index 0000000000..89cc8e6d1b --- /dev/null +++ b/headers/private/storage/DiskDeviceDefs.h @@ -0,0 +1,40 @@ +//---------------------------------------------------------------------- +// This software is part of the OpenBeOS distribution and is covered +// by the OpenBeOS license. +//--------------------------------------------------------------------- + +#ifndef _DISK_DEVICE_DEFS_H +#define _DISK_DEVICE_DEFS_H + +#include + +#ifdef __cplusplus +extern "C" { +#endif + +typedef int32 partition_id; +typedef int32 disk_system_id; +typedef int32 disk_job_id; + +// partition flags +enum { + B_PARTITION_IS_DEVICE = 0x01, + B_PARTITION_MOUNTABLE = 0x02, + B_PARTITION_PARTITIONABLE = 0x04, + B_PARTITION_READ_ONLY = 0x08, + B_PARTITION_MOUNTED = 0x10, // needed? + B_PARTITION_BUSY = 0x20, + B_PARTITION_DESCENDANT_BUSY = 0x40, +}; + +// disk device flags +enum { + B_DISK_DEVICE_REMOVABLE = 0x01, + B_DISK_DEVICE_HAS_MEDIA = 0x02, +}; + +#ifdef __cplusplus +} +#endif + +#endif // _DISK_DEVICE_DEFS_H