From 6ef35ef7703cfbfb6deb8b3674a6e165f137496e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Sun, 26 Jul 2009 17:23:59 +0000 Subject: [PATCH] * Cleanup. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31778 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- .../system/ddm_userland_interface_defs.h | 52 ++++++++++--------- 1 file changed, 27 insertions(+), 25 deletions(-) diff --git a/headers/private/system/ddm_userland_interface_defs.h b/headers/private/system/ddm_userland_interface_defs.h index e73190e70d..df6c5388a1 100644 --- a/headers/private/system/ddm_userland_interface_defs.h +++ b/headers/private/system/ddm_userland_interface_defs.h @@ -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 #include @@ -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;