* Cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31778 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2003-2008, Haiku Inc.
|
||||
* Copyright 2003-2009, Haiku Inc.
|
||||
* Distributed under the terms of the MIT License.
|
||||
*
|
||||
* Authors:
|
||||
@@ -8,6 +8,7 @@
|
||||
#ifndef _SYSTEM_DDM_USERLAND_INTERFACE_DEFS_H
|
||||
#define _SYSTEM_DDM_USERLAND_INTERFACE_DEFS_H
|
||||
|
||||
|
||||
#include <OS.h>
|
||||
|
||||
#include <DiskDeviceDefs.h>
|
||||
@@ -16,39 +17,40 @@
|
||||
// userland partition representation
|
||||
typedef struct user_partition_data user_partition_data;
|
||||
struct user_partition_data {
|
||||
partition_id id;
|
||||
off_t offset;
|
||||
off_t size;
|
||||
off_t content_size;
|
||||
uint32 block_size;
|
||||
uint32 status;
|
||||
uint32 flags;
|
||||
dev_t volume;
|
||||
int32 index;
|
||||
int32 change_counter; // needed?
|
||||
disk_system_id disk_system;
|
||||
char *name;
|
||||
char *content_name;
|
||||
char *type;
|
||||
char *content_type;
|
||||
char *parameters;
|
||||
char *content_parameters;
|
||||
void *user_data;
|
||||
int32 child_count;
|
||||
user_partition_data *children[1];
|
||||
partition_id id;
|
||||
off_t offset;
|
||||
off_t size;
|
||||
off_t content_size;
|
||||
uint32 block_size;
|
||||
uint32 status;
|
||||
uint32 flags;
|
||||
dev_t volume;
|
||||
int32 index;
|
||||
int32 change_counter; // TODO: needed?
|
||||
disk_system_id disk_system;
|
||||
char* name;
|
||||
char* content_name;
|
||||
char* type;
|
||||
char* content_type;
|
||||
char* parameters;
|
||||
char* content_parameters;
|
||||
void* user_data;
|
||||
int32 child_count;
|
||||
user_partition_data* children[1];
|
||||
};
|
||||
|
||||
// userland disk device representation
|
||||
typedef struct user_disk_device_data {
|
||||
uint32 device_flags;
|
||||
char *path;
|
||||
user_partition_data device_partition_data;
|
||||
uint32 device_flags;
|
||||
char* path;
|
||||
user_partition_data device_partition_data;
|
||||
} user_disk_device_data;
|
||||
|
||||
// userland disk system representation
|
||||
typedef struct user_disk_system_info {
|
||||
disk_system_id id;
|
||||
char name[B_FILE_NAME_LENGTH]; // better B_PATH_NAME_LENGTH?
|
||||
char name[B_FILE_NAME_LENGTH];
|
||||
// TODO: better B_PATH_NAME_LENGTH?
|
||||
char short_name[B_OS_NAME_LENGTH];
|
||||
char pretty_name[B_OS_NAME_LENGTH];
|
||||
uint32 flags;
|
||||
|
||||
Reference in New Issue
Block a user