Lines Matching defs:attrInfo
95 attr_info attrInfo;
97 result = fNode->GetAttrInfo(kNITypeAttribute, &attrInfo);
99 if (result == B_OK && attrInfo.type != B_MIME_STRING_TYPE)
102 if (result == B_OK && attrInfo.size > B_MIME_TYPE_LENGTH)
107 ssize_t read = fNode->ReadAttr(kNITypeAttribute, attrInfo.type, 0,
108 type, attrInfo.size);
111 else if (read != attrInfo.size)
116 type[min_c(attrInfo.size, B_MIME_TYPE_LENGTH - 1)] = '\0';
251 attr_info attrInfo;
252 status_t result = fNode->GetAttrInfo(kNIIconAttribute, &attrInfo);
257 if (attrInfo.size > 128 * 1024)
261 *type = attrInfo.type;
262 *size = attrInfo.size;
269 if (read != attrInfo.size) {
314 attr_info attrInfo;
316 result = fNode->GetAttrInfo(kNIPreferredAppAttribute, &attrInfo);
318 if (result == B_OK && attrInfo.type != B_MIME_STRING_TYPE)
321 if (result == B_OK && attrInfo.size > B_MIME_TYPE_LENGTH)
326 ssize_t read = fNode->ReadAttr(kNIPreferredAppAttribute, attrInfo.type,
327 0, signature, attrInfo.size);
330 else if (read != attrInfo.size)
335 signature[min_c(attrInfo.size, B_MIME_TYPE_LENGTH - 1)] = '\0';
381 attr_info attrInfo;
383 result = fNode->GetAttrInfo(kNIAppHintAttribute, &attrInfo);
387 if (result == B_OK && attrInfo.type != B_MIME_STRING_TYPE)
390 if (result == B_OK && attrInfo.size > B_PATH_NAME_LENGTH)
396 ssize_t read = fNode->ReadAttr(kNIAppHintAttribute, attrInfo.type, 0,
397 path, attrInfo.size);
400 else if (read != attrInfo.size)
406 path[min_c(attrInfo.size, B_PATH_NAME_LENGTH - 1)] = '\0';