Lines Matching defs:attribute

44 	const void* data, Attribute** attribute)
46 if (!name || !attribute)
59 *attribute = new(buffer) Attribute(name, info, data);
65 Attribute::DeleteAttribute(Attribute* attribute)
67 if (attribute) {
68 attribute->~Attribute();
69 free(attribute);
159 // iterate through the attribute directory
162 // get the attribute data
170 // create the attribute
176 // TODO: Enforce maximum attribute directory size.
185 while (Attribute* attribute = GetFirstAttribute())
186 RemoveAttribute(attribute);
197 // create the attribute
198 Attribute* attribute;
199 status_t error = Attribute::CreateAttribute(name, info, data, &attribute);
203 // add the attribute
204 fAttributes.Insert(attribute);
218 Attribute* attribute = it.Next();
219 if (strcmp(attribute->GetName(), name) == 0) {
221 Attribute::DeleteAttribute(attribute);
231 AttributeDirectory::RemoveAttribute(Attribute* attribute)
233 if (!attribute)
236 fAttributes.Remove(attribute);
237 Attribute::DeleteAttribute(attribute);
258 // get the attribute data
266 // remove the attribute
270 Attribute* attribute = it.Next();
271 if (strcmp(attribute->GetName(), name) == 0) {
273 Attribute::DeleteAttribute(attribute);
276 previous = attribute;
280 // re-create the attribute
281 Attribute* attribute;
283 &attribute);
285 // add the attribute
286 fAttributes.InsertAfter(previous, attribute);
290 attribute->GetInfo(_info);
292 *_data = attribute->GetData();
327 Attribute* attribute = it.Next();
328 if (strcmp(attribute->GetName(), name) == 0)
329 return attribute;
344 AttributeDirectory::GetNextAttribute(Attribute* attribute) const
346 return (attribute ? fAttributes.GetNext(attribute) : NULL);
354 // stat the attribute