Minor cleanup.

This commit is contained in:
Axel Dörfler
2012-03-31 00:09:46 +02:00
parent aed54a9a46
commit 225e1b1190
+7 -5
View File
@@ -1,5 +1,5 @@
/* /*
* Copyright 2001-2008, Axel Dörfler, [email protected]. * Copyright 2001-2012, Axel Dörfler, [email protected].
* This file may be used under the terms of the MIT License. * This file may be used under the terms of the MIT License.
*/ */
#ifndef INDEX_H #ifndef INDEX_H
@@ -18,17 +18,17 @@ class Index {
public: public:
Index(Volume* volume); Index(Volume* volume);
~Index(); ~Index();
status_t SetTo(const char* name); status_t SetTo(const char* name);
void Unset(); void Unset();
Inode* Node() const { return fNode; }; Inode* Node() const { return fNode; };
uint32 Type(); uint32 Type();
size_t KeySize(); size_t KeySize();
status_t Create(Transaction& transaction, const char* name, status_t Create(Transaction& transaction, const char* name,
uint32 type); uint32 type);
status_t Update(Transaction& transaction, const char* name, status_t Update(Transaction& transaction, const char* name,
int32 type, const uint8* oldKey, int32 type, const uint8* oldKey,
uint16 oldLength, const uint8* newKey, uint16 oldLength, const uint8* newKey,
@@ -45,7 +45,7 @@ public:
status_t InsertSize(Transaction& transaction, Inode* inode); status_t InsertSize(Transaction& transaction, Inode* inode);
status_t RemoveSize(Transaction& transaction, Inode* inode); status_t RemoveSize(Transaction& transaction, Inode* inode);
status_t UpdateSize(Transaction& transaction, Inode* inode); status_t UpdateSize(Transaction& transaction, Inode* inode);
status_t InsertLastModified(Transaction& transaction, status_t InsertLastModified(Transaction& transaction,
Inode* inode); Inode* inode);
status_t RemoveLastModified(Transaction& transaction, status_t RemoveLastModified(Transaction& transaction,
@@ -58,9 +58,11 @@ private:
Index& operator=(const Index& other); Index& operator=(const Index& other);
// no implementation // no implementation
private:
Volume* fVolume; Volume* fVolume;
Inode* fNode; Inode* fNode;
const char* fName; const char* fName;
}; };
#endif // INDEX_H #endif // INDEX_H