Added support for path normalization.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9625 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2004-10-28 22:16:41 +00:00
parent 4a5d9e3246
commit cba3b01fdf
2 changed files with 30 additions and 14 deletions
+5 -3
View File
@@ -13,15 +13,17 @@ namespace DiskDevice {
class KPath {
public:
KPath(int32 bufferSize = B_PATH_NAME_LENGTH);
KPath(const char* path, int32 bufferSize = B_PATH_NAME_LENGTH);
KPath(const char* path, bool normalize = false,
int32 bufferSize = B_PATH_NAME_LENGTH);
KPath(const KPath& other);
~KPath();
status_t SetTo(const char *path, int32 bufferSize = B_PATH_NAME_LENGTH);
status_t SetTo(const char *path, bool normalize = false,
int32 bufferSize = B_PATH_NAME_LENGTH);
status_t InitCheck() const;
status_t SetPath(const char *path);
status_t SetPath(const char *path, bool normalize = false);
const char *Path() const;
int32 Length() const;