GetTypeForRef
if (GetTypeForRef(&(*item)->ref, type) == B_OK) {
static status_t GetTypeForRef(const entry_ref *ref, char *result);