* Coding style cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@43198 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
+20
-12
@@ -1,10 +1,11 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2002-2009, Haiku, Inc. All Rights Reserved.
|
* Copyright 2002-2011, Haiku, Inc. All Rights Reserved.
|
||||||
* Distributed under the terms of the MIT License.
|
* Distributed under the terms of the MIT License.
|
||||||
*/
|
*/
|
||||||
#ifndef _NODE_H
|
#ifndef _NODE_H
|
||||||
#define _NODE_H
|
#define _NODE_H
|
||||||
|
|
||||||
|
|
||||||
#include <Statable.h>
|
#include <Statable.h>
|
||||||
|
|
||||||
|
|
||||||
@@ -52,23 +53,30 @@ public:
|
|||||||
|
|
||||||
status_t Sync();
|
status_t Sync();
|
||||||
|
|
||||||
ssize_t WriteAttr(const char *name, type_code type, off_t offset,
|
ssize_t WriteAttr(const char* name, type_code type,
|
||||||
const void *buffer, size_t len);
|
off_t offset, const void* buffer,
|
||||||
ssize_t ReadAttr(const char *name, type_code type, off_t offset,
|
size_t length);
|
||||||
void *buffer, size_t len) const;
|
ssize_t ReadAttr(const char* name, type_code type,
|
||||||
|
off_t offset, void* buffer,
|
||||||
|
size_t length) const;
|
||||||
status_t RemoveAttr(const char* name);
|
status_t RemoveAttr(const char* name);
|
||||||
status_t RenameAttr(const char *oldname, const char *newname);
|
status_t RenameAttr(const char* oldName,
|
||||||
status_t GetAttrInfo(const char *name, struct attr_info *info) const;
|
const char* newName);
|
||||||
|
status_t GetAttrInfo(const char* name,
|
||||||
|
struct attr_info* info) const;
|
||||||
status_t GetNextAttrName(char* buffer);
|
status_t GetNextAttrName(char* buffer);
|
||||||
status_t RewindAttrs();
|
status_t RewindAttrs();
|
||||||
status_t WriteAttrString(const char *name, const BString *data);
|
status_t WriteAttrString(const char* name,
|
||||||
status_t ReadAttrString(const char *name, BString *result) const;
|
const BString* data);
|
||||||
|
status_t ReadAttrString(const char* name,
|
||||||
|
BString* result) const;
|
||||||
|
|
||||||
BNode& operator=(const BNode& node);
|
BNode& operator=(const BNode& node);
|
||||||
bool operator==(const BNode& node) const;
|
bool operator==(const BNode& node) const;
|
||||||
bool operator!=(const BNode& node) const;
|
bool operator!=(const BNode& node) const;
|
||||||
|
|
||||||
int Dup(); // This should be "const" but R5's is not... Ugggh.
|
int Dup();
|
||||||
|
// This should be "const" but R5's is not... Ugggh.
|
||||||
|
|
||||||
private:
|
private:
|
||||||
friend class BFile;
|
friend class BFile;
|
||||||
@@ -94,14 +102,14 @@ private:
|
|||||||
|
|
||||||
status_t _GetStat(struct stat* st) const;
|
status_t _GetStat(struct stat* st) const;
|
||||||
virtual status_t _GetStat(struct stat_beos* st) const;
|
virtual status_t _GetStat(struct stat_beos* st) const;
|
||||||
|
status_t InitAttrDir();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
uint32 rudeData[4];
|
uint32 rudeData[4];
|
||||||
int fFd;
|
int fFd;
|
||||||
int fAttrFd;
|
int fAttrFd;
|
||||||
status_t fCStatus;
|
status_t fCStatus;
|
||||||
|
|
||||||
status_t InitAttrDir();
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
#endif // _NODE_H
|
#endif // _NODE_H
|
||||||
|
|||||||
Reference in New Issue
Block a user