Lines Matching defs:attribute
85 const void* data, Attribute** attribute)
87 if (!name || !attribute)
100 *attribute = new(buffer) Attribute(name, info, data);
106 Attribute::DeleteAttribute(Attribute* attribute)
108 if (attribute) {
109 attribute->~Attribute();
110 free(attribute);
248 Attribute* attribute = fAttributes.GetFirst();
249 oldAttributes[i] = attribute;
250 fAttributes.Remove(attribute);
263 // next new attribute
279 // move the attributes pointing to this attribute
329 while (Attribute* attribute = GetFirstAttribute())
330 RemoveAttribute(attribute);
341 // create the attribute
342 Attribute* attribute;
343 status_t error = Attribute::CreateAttribute(name, info, data, &attribute);
347 // add the attribute
348 fAttributes.Insert(attribute);
362 Attribute* attribute = it.Next();
363 if (strcmp(attribute->GetName(), name) == 0) {
365 Attribute::DeleteAttribute(attribute);
375 ShareAttrDir::RemoveAttribute(Attribute* attribute)
377 if (!attribute)
380 fAttributes.Remove(attribute);
381 Attribute::DeleteAttribute(attribute);
393 Attribute* attribute = it.Next();
394 if (strcmp(attribute->GetName(), name) == 0)
395 return attribute;
410 ShareAttrDir::GetNextAttribute(Attribute* attribute) const
412 return (attribute ? fAttributes.GetNext(attribute) : NULL);
426 // allocate an attribute array
439 // create the attribute
452 if (Attribute* attribute = attributes[i])
453 Attribute::DeleteAttribute(attribute);
460 // sort the attribute array