Lines Matching refs:name
17 Attribute::Attribute(const char* name, const attr_info& info,
32 // copy the name
33 strcpy(nameBuffer, name);
43 Attribute::CreateAttribute(const char* name, const attr_info& info,
46 if (!name || !attribute)
50 int32 nameLen = strlen(name);
59 *attribute = new(buffer) Attribute(name, info, data);
160 char name[B_ATTR_NAME_LENGTH];
161 while (node.GetNextAttrName(name) == B_OK) {
166 error = _LoadAttribute(node, name, info, data, dataLoaded);
171 error = AddAttribute(name, info, (dataLoaded ? data : NULL));
191 AttributeDirectory::AddAttribute(const char* name, const attr_info& info,
194 if (!name || GetAttribute(name))
199 status_t error = Attribute::CreateAttribute(name, info, data, &attribute);
211 AttributeDirectory::RemoveAttribute(const char* name)
213 if (!name)
219 if (strcmp(attribute->GetName(), name) == 0) {
242 AttributeDirectory::UpdateAttribute(const char* name, bool* removed,
245 if (!name || !removed)
262 error = _LoadAttribute(node, name, info,
271 if (strcmp(attribute->GetName(), name) == 0) {
282 error = Attribute::CreateAttribute(name, info, data,
304 RemoveAttribute(name);
320 AttributeDirectory::GetAttribute(const char* name) const
322 if (!name)
328 if (strcmp(attribute->GetName(), name) == 0)
351 AttributeDirectory::_LoadAttribute(BNode& node, const char* name,
355 status_t error = node.GetAttrInfo(name, &info);
361 ssize_t bytesRead = node.ReadAttr(name, info.type, 0, data,