1// EntryRef.h 2 3#ifndef NET_FS_ENTRY_REF_H 4#define NET_FS_ENTRY_REF_H 5 6#include <Entry.h> 7 8// EntryRef 9class EntryRef : public entry_ref { 10public: 11 EntryRef(); 12 EntryRef(dev_t volumeID, ino_t nodeID, 13 const char* name); 14 EntryRef(const entry_ref& ref); 15 16 status_t InitCheck() const; 17 18 uint32 GetHashCode() const; 19}; 20 21// NoAllocEntryRef 22// 23// EntryRef that doesn't clone the supplied name. Use with care! 24class NoAllocEntryRef : public EntryRef { 25public: 26 NoAllocEntryRef(); 27 NoAllocEntryRef(dev_t volumeID, ino_t nodeID, 28 const char* name); 29 NoAllocEntryRef(const entry_ref& ref); 30 ~NoAllocEntryRef(); 31 32 NoAllocEntryRef& operator=(const entry_ref& ref); 33}; 34 35 36#endif // NET_FS_ENTRY_REF_H 37