Lines Matching defs:child
56 status_t AddEntry(Directory *node, Entry *child);
57 status_t AddEntry(ino_t, Entry *child);
58 status_t RemoveEntry(Directory *node, Entry *child);
59 status_t RemoveEntry(ino_t id, Entry *child);
94 DirectoryEntryTable::AddEntry(Directory *node, Entry *child)
96 status_t error = (node && child ? B_OK : B_BAD_VALUE);
98 error = AddEntry(node->GetID(), child);
104 DirectoryEntryTable::AddEntry(ino_t id, Entry *child)
106 status_t error = (child ? B_OK : B_BAD_VALUE);
108 RemoveEntry(id, child);
109 SET_ERROR(error, fTable.Insert(child));
116 DirectoryEntryTable::RemoveEntry(Directory *node, Entry *child)
118 status_t error = (node && child ? B_OK : B_BAD_VALUE);
120 error = RemoveEntry(node->GetID(), child->GetName());
126 DirectoryEntryTable::RemoveEntry(ino_t id, Entry *child)
128 status_t error = (child ? B_OK : B_BAD_VALUE);
130 error = RemoveEntry(id, child->GetName());
138 Entry* child = fTable.Lookup(DirectoryEntryHash::Key(id, name));
139 if (!child)
141 return fTable.Remove(child) ? B_OK : B_ERROR;
148 Entry *child = fTable.Lookup(DirectoryEntryHash::Key(id, name));
149 return child;