Lines Matching refs:ref

49 			void				Put(const entry_ref& ref);
108 QuarantineTranslatorImage::Put(const entry_ref& ref)
110 fRef = ref;
287 item->ref.set_name(name);
288 item->ref.directory = toNodeRef.node;
451 entry_ref ref;
452 while (directory.GetNextRef(&ref) == B_OK) {
453 BEntry entry(&ref);
456 if (CreateTranslators(ref, count) == B_OK)
474 image_id image, const entry_ref* ref, ino_t node)
482 if (ref != NULL)
483 item.ref = *ref;
498 BTranslatorRoster::Private::RemoveTranslators(entry_ref& ref)
500 _RemoveTranslators(NULL, &ref);
560 BTranslatorRoster::Private::CreateTranslators(const entry_ref& ref,
567 const translator_item* item = _FindTranslator(ref.name);
570 if (_CompareTranslatorDirectoryPriority(item->ref, ref) <= 0) {
576 quarantine.Put(item->ref);
579 BEntry entry(&ref);
585 BPath path(&ref);
603 if (AddTranslator(translator, image, &ref, nodeRef.node) == B_OK) {
640 status = AddTranslator(translator, image, &ref, nodeRef.node);
705 BPath path(&item.ref);
850 BTranslatorRoster::Private::GetRefFor(translator_id id, entry_ref& ref)
858 BEntry entry(&item->ref);
860 ref = item->ref;
980 if (item.ref.name != NULL && !strcmp(item.ref.name, name))
991 BTranslatorRoster::Private::_FindTranslator(entry_ref& ref) const
993 if (ref.name == NULL)
1000 if (item.ref == ref)
1020 if (item.ref.device == nodeRef.device
1084 const entry_ref* ref)
1086 if (ref == NULL && nodeRef == NULL)
1097 if ((ref != NULL && item.ref == *ref)
1098 || (nodeRef != NULL && item.ref.device == nodeRef->device
1117 entry_ref ref;
1118 ref.device = nodeRef.device;
1119 ref.directory = nodeRef.node;
1120 ref.set_name(name);
1122 _EntryAdded(ref);
1135 BTranslatorRoster::Private::_EntryAdded(const entry_ref& ref)
1138 if (entry.SetTo(&ref) != B_OK || !entry.IsFile())
1142 fRescanEntries.insert(ref);
1148 CreateTranslators(ref, count, &update);
1203 entry_ref ref;
1204 if (entry.GetRef(&ref) == B_OK) {
1206 fPrivate->CreateTranslators(ref, count);
1332 BTranslatorRoster::IsTranslator(entry_ref* ref)
1334 if (ref == NULL)
1337 BPath path(ref);
1749 \param ref the entry ref is stored there
1753 B_BAD_VALUE, if \a ref is NULL
1757 BTranslatorRoster::GetRefFor(translator_id id, entry_ref* ref)
1759 if (ref == NULL)
1762 return fPrivate->GetRefFor(id, *ref);