2 * Copyright 2003-2009, Haiku Inc.
3 * Distributed under the terms of the MIT License.
6 * Ingo Weinhold, bonefish@users.sf.net
8 #ifndef _SYSTEM_DDM_USERLAND_INTERFACE_DEFS_H
9 #define _SYSTEM_DDM_USERLAND_INTERFACE_DEFS_H
14 #include <DiskDeviceDefs.h>
17 // userland partition representation
18 typedef struct user_partition_data user_partition_data
;
19 struct user_partition_data
{
29 int32 change_counter
; // TODO: needed?
30 disk_system_id disk_system
;
36 char* content_parameters
;
39 user_partition_data
* children
[1];
42 // userland disk device representation
43 typedef struct user_disk_device_data
{
46 user_partition_data device_partition_data
;
47 } user_disk_device_data
;
49 // userland disk system representation
50 typedef struct user_disk_system_info
{
52 char name
[B_FILE_NAME_LENGTH
];
53 // TODO: better B_PATH_NAME_LENGTH?
54 char short_name
[B_OS_NAME_LENGTH
];
55 char pretty_name
[B_OS_NAME_LENGTH
];
57 } user_disk_system_info
;
59 // userland disk device job representation
60 typedef struct user_disk_device_job_info
{
63 partition_id partition
;
64 char description
[256];
65 } user_disk_device_job_info
;
68 #endif // _SYSTEM_DDM_USERLAND_INTERFACE_DEFS_H