2 * Copyright 2012,2013 Haiku, Inc. All rights reserved.
3 * Distributed under the terms of the MIT License.
6 * Paweł Dziepak, pdziepak@quarnos.org
13 #include <SupportDefs.h>
14 #include <util/AutoLock.h>
15 #include <util/AVLTreeMap.h>
25 status_t
AddName(FileInfo
& fileInfo
,
27 const char* name
, ino_t id
);
28 bool RemoveName(ino_t id
,
31 status_t
RemoveEntry(ino_t id
);
32 status_t
GetFileInfo(FileInfo
* fileInfo
,
36 AVLTreeMap
<ino_t
, FileInfo
> fMap
;
43 InodeIdMap::InodeIdMap()
45 mutex_init(&fLock
, NULL
);
50 InodeIdMap::~InodeIdMap()
52 mutex_destroy(&fLock
);
56 #endif // INODEIDMAP_H