* Added BDiskSystem::ShortName() and everything needed to get it there.
* Added BDiskDeviceRoster::GetDiskSystem() method, that can get a disk system by short/pretty/module name - since they should all be unique, I put them in a single namespace, please complain if you don't like that :-) * Cleaned up DiskSystem.h and DiskDeviceRoster.h according to the updated header guidelines. * Renamed ntfs pretty name from "ntfs File System" to "Windows NT File System". git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25414 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2003-2007, Haiku, Inc. All Rights Reserved.
|
||||
* Copyright 2003-2008, Haiku, Inc. All Rights Reserved.
|
||||
* Distributed under the terms of the MIT License.
|
||||
*
|
||||
* Authors:
|
||||
@@ -8,6 +8,7 @@
|
||||
#ifndef _K_DISK_DEVICE_SYSTEM_H
|
||||
#define _K_DISK_DEVICE_SYSTEM_H
|
||||
|
||||
|
||||
#include "disk_device_manager.h"
|
||||
|
||||
|
||||
@@ -33,7 +34,8 @@ public:
|
||||
disk_system_id ID() const;
|
||||
|
||||
const char* Name() const;
|
||||
const char* PrettyName();
|
||||
const char* ShortName() const;
|
||||
const char* PrettyName() const;
|
||||
uint32 Flags() const;
|
||||
|
||||
bool IsFileSystem() const;
|
||||
@@ -97,6 +99,7 @@ protected:
|
||||
virtual status_t LoadModule();
|
||||
virtual void UnloadModule();
|
||||
|
||||
status_t SetShortName(const char* name);
|
||||
status_t SetPrettyName(const char* name);
|
||||
void SetFlags(uint32 flags);
|
||||
|
||||
@@ -105,6 +108,7 @@ protected:
|
||||
private:
|
||||
disk_system_id fID;
|
||||
char* fName;
|
||||
char* fShortName;
|
||||
char* fPrettyName;
|
||||
uint32 fFlags;
|
||||
int32 fLoadCounter;
|
||||
|
||||
@@ -1,10 +1,12 @@
|
||||
// ddm_modules.h
|
||||
//
|
||||
// Interface to be implemented by partitioning modules.
|
||||
|
||||
/*
|
||||
* Copyright 2003-2008, Haiku Inc.
|
||||
* Distributed under the terms of the MIT License.
|
||||
*/
|
||||
#ifndef _K_DISK_DEVICE_MODULES_H
|
||||
#define _K_DISK_DEVICE_MODULES_H
|
||||
|
||||
//! Interface to be implemented by partitioning modules.
|
||||
|
||||
#include <disk_device_manager.h>
|
||||
#include <module.h>
|
||||
#include <SupportDefs.h>
|
||||
@@ -12,6 +14,7 @@
|
||||
|
||||
typedef struct partition_module_info {
|
||||
module_info module;
|
||||
const char* short_name;
|
||||
const char* pretty_name;
|
||||
uint32 flags;
|
||||
|
||||
|
||||
@@ -1,5 +1,10 @@
|
||||
// ddm_userland_interface.h
|
||||
|
||||
/*
|
||||
* Copyright 2003-2008, Haiku Inc.
|
||||
* Distributed under the terms of the MIT License.
|
||||
*
|
||||
* Authors:
|
||||
* Ingo Weinhold, [email protected]
|
||||
*/
|
||||
#ifndef _DISK_DEVICE_MANAGER_USERLAND_INTERFACE_H
|
||||
#define _DISK_DEVICE_MANAGER_USERLAND_INTERFACE_H
|
||||
|
||||
@@ -49,6 +54,7 @@ typedef struct user_disk_device_data {
|
||||
typedef struct user_disk_system_info {
|
||||
disk_system_id id;
|
||||
char name[B_FILE_NAME_LENGTH]; // better B_PATH_NAME_LENGTH?
|
||||
char short_name[B_OS_NAME_LENGTH];
|
||||
char pretty_name[B_OS_NAME_LENGTH];
|
||||
uint32 flags;
|
||||
} user_disk_system_info;
|
||||
|
||||
Reference in New Issue
Block a user