CS0String -> UdfString

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5587 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Tyler Dauwalder
2003-12-06 08:29:13 +00:00
parent d40fb3032e
commit dce2dc5cab
8 changed files with 22 additions and 22 deletions
@@ -15,7 +15,7 @@
#include "Icb.h" #include "Icb.h"
#include "CS0String.h" #include "UdfString.h"
#include "Utils.h" #include "Utils.h"
using namespace Udf; using namespace Udf;
@@ -59,11 +59,11 @@ DirectoryIterator::GetNextEntry(char *name, uint32 *length, vnode_id *id)
sprintf(name, ".."); sprintf(name, "..");
*length = 3; *length = 3;
} else { } else {
CS0String string(entry->id(), entry->id_length()); String string(entry->id(), entry->id_length());
PRINT(("id == `%s'\n", string.String())); PRINT(("id == `%s'\n", string.Utf8()));
DUMP(entry->icb()); DUMP(entry->icb());
sprintf(name, "%s", string.String()); sprintf(name, "%s", string.Utf8());
*length = string.Length(); *length = string.Utf8Length();
} }
*id = to_vnode_id(entry->icb()); *id = to_vnode_id(entry->icb());
} }
+1 -1
View File
@@ -30,7 +30,6 @@ R5KernelAddon udf : [ FDirName kernel file_systems udf ] :
kernel_cpp.cpp kernel_cpp.cpp
udf.cpp udf.cpp
CS0String.cpp
DirectoryIterator.cpp DirectoryIterator.cpp
Icb.cpp Icb.cpp
MetadataPartition.cpp MetadataPartition.cpp
@@ -38,6 +37,7 @@ R5KernelAddon udf : [ FDirName kernel file_systems udf ] :
Recognition.cpp Recognition.cpp
SparablePartition.cpp SparablePartition.cpp
UdfDebug.cpp UdfDebug.cpp
UdfString.cpp
UdfStructures.cpp UdfStructures.cpp
Utils.cpp Utils.cpp
VirtualPartition.cpp VirtualPartition.cpp
@@ -1,6 +1,6 @@
#include "Recognition.h" #include "Recognition.h"
#include "CS0String.h" #include "UdfString.h"
#include "MemoryChunk.h" #include "MemoryChunk.h"
#include "Utils.h" #include "Utils.h"
@@ -80,8 +80,8 @@ Udf::udf_recognize(int device, off_t offset, off_t length, uint32 blockSize,
logicalVolumeDescriptor, partitionDescriptors, logicalVolumeDescriptor, partitionDescriptors,
partitionDescriptorCount); partitionDescriptorCount);
if (!error && volumeName) { if (!error && volumeName) {
CS0String name(logicalVolumeDescriptor.logical_volume_identifier()); String name(logicalVolumeDescriptor.logical_volume_identifier());
strcpy(volumeName, name.String()); strcpy(volumeName, name.Utf8());
} }
RETURN(error); RETURN(error);
} }
@@ -263,7 +263,7 @@ Volume::Mount(const char *deviceName, off_t offset, off_t length,
const char* const char*
Volume::Name() const { Volume::Name() const {
return fName.String(); return fName.Utf8();
} }
/*! \brief Maps the given logical block to a physical block. /*! \brief Maps the given logical block to a physical block.
@@ -298,7 +298,7 @@ Volume::_Unset()
fLength = 0; fLength = 0;
fBlockSize = 0; fBlockSize = 0;
fBlockShift = 0; fBlockShift = 0;
fName.SetTo(""); fName.SetTo("", 0);
// delete our partitions // delete our partitions
for (int i = 0; i < UDF_MAX_PARTITION_MAPS; i++) for (int i = 0; i < UDF_MAX_PARTITION_MAPS; i++)
_SetPartition(i, NULL); _SetPartition(i, NULL);
+2 -2
View File
@@ -24,7 +24,7 @@ extern "C" {
#include "kernel_cpp.h" #include "kernel_cpp.h"
#include "UdfDebug.h" #include "UdfDebug.h"
#include "CS0String.h" #include "UdfString.h"
#include "UdfStructures.h" #include "UdfStructures.h"
#include "Partition.h" #include "Partition.h"
@@ -78,7 +78,7 @@ private:
uint32 fBlockShift; uint32 fBlockShift;
Partition *fPartitions[UDF_MAX_PARTITION_MAPS]; Partition *fPartitions[UDF_MAX_PARTITION_MAPS];
Icb *fRootIcb; // Destroyed by vfs via callback to release_node() Icb *fRootIcb; // Destroyed by vfs via callback to release_node()
CS0String fName; String fName;
}; };
}; // namespace Udf }; // namespace Udf
@@ -35,9 +35,9 @@ SubDirHdrs [ FDirName $(OBOS_TOP) src add-ons kernel file_systems udf ] ;
# iso9660/UDF hybrid discs. # iso9660/UDF hybrid discs.
Addon i-udf-ds : [ FDirName drive_setup fs ] : Addon i-udf-ds : [ FDirName drive_setup fs ] :
udf-ds.cpp udf-ds.cpp
CS0String.cpp
Recognition.cpp Recognition.cpp
UdfDebug.cpp UdfDebug.cpp
UdfString.cpp
UdfStructures.cpp UdfStructures.cpp
Utils.cpp Utils.cpp
@@ -46,7 +46,7 @@ Addon i-udf-ds : [ FDirName drive_setup fs ] :
; ;
SEARCH on [ FGristFiles SEARCH on [ FGristFiles
CS0String.cpp Recognition.cpp UdfDebug.cpp UdfStructures.cpp Utils.cpp Recognition.cpp UdfDebug.cpp UdfString.cpp UdfStructures.cpp Utils.cpp
] = [ FDirName $(OBOS_TOP) src add-ons kernel file_systems udf ] ; ] = [ FDirName $(OBOS_TOP) src add-ons kernel file_systems udf ] ;
rule InstallUDFDS rule InstallUDFDS
+2 -2
View File
@@ -19,8 +19,8 @@ BinCommand makeudfimage
UdfBuilder.cpp UdfBuilder.cpp
# Common Udf source files # Common Udf source files
CS0String.cpp
UdfDebug.cpp UdfDebug.cpp
UdfString.cpp
UdfStructures.cpp UdfStructures.cpp
Utils.cpp Utils.cpp
@@ -29,6 +29,6 @@ BinCommand makeudfimage
; ;
SEARCH on [ FGristFiles CS0String.cpp UdfDebug.cpp UdfStructures.cpp Utils.cpp ] SEARCH on [ FGristFiles UdfDebug.cpp UdfString.cpp UdfStructures.cpp Utils.cpp ]
= [ FDirName $(OBOS_TOP) src add-ons kernel file_systems udf ] ; = [ FDirName $(OBOS_TOP) src add-ons kernel file_systems udf ] ;
@@ -17,10 +17,10 @@ SimpleTest udf_shell
sysdep.c hexdump.c argv.c tracker.cpp sysdep.c hexdump.c argv.c tracker.cpp
udf.cpp udf.cpp
CS0String.cpp DirectoryIterator.cpp Icb.cpp DirectoryIterator.cpp Icb.cpp
MetadataPartition.cpp PhysicalPartition.cpp Recognition.cpp MetadataPartition.cpp PhysicalPartition.cpp Recognition.cpp
UdfDebug.cpp UdfStructures.cpp Utils.cpp SparablePartition.cpp UdfDebug.cpp UdfString.cpp UdfStructures.cpp Utils.cpp
VirtualPartition.cpp Volume.cpp SparablePartition.cpp VirtualPartition.cpp Volume.cpp
: :
; ;
@@ -29,8 +29,8 @@ SEARCH on [ FGristFiles
udf.cpp udf.cpp
CS0String.cpp DirectoryIterator.cpp Icb.cpp CS0String.cpp DirectoryIterator.cpp Icb.cpp
MetadataPartition.cpp PhysicalPartition.cpp Recognition.cpp MetadataPartition.cpp PhysicalPartition.cpp Recognition.cpp
UdfDebug.cpp UdfStructures.cpp Utils.cpp SparablePartition.cpp UdfDebug.cpp UdfString.cpp UdfStructures.cpp Utils.cpp
VirtualPartition.cpp Volume.cpp SparablePartition.cpp VirtualPartition.cpp Volume.cpp
] = [ FDirName $(OBOS_TOP) src add-ons kernel file_systems udf ] ; ] = [ FDirName $(OBOS_TOP) src add-ons kernel file_systems udf ] ;
SEARCH on [ FGristFiles SEARCH on [ FGristFiles