Lines Matching defs:theGlobals
107 FSDeleteContainerGlobals *theGlobals);
112 FSIterateContainerGlobals *theGlobals);
1456 theGlobals --> A pointer to a FSDeleteContainerGlobals struct
1467 FSDeleteContainerGlobals *theGlobals)
1475 theGlobals->result = FSOpenIterator(container, kFSIterateFlat + kFSIterateDelete, &iterator);
1476 require_noerr(theGlobals->result, FSOpenIterator);
1482 theGlobals->result = FSGetCatalogInfoBulk(iterator, 1, &theGlobals->actualObjects,
1483 NULL, kFSCatInfoNodeFlags, &theGlobals->catalogInfo,
1485 if ( (noErr == theGlobals->result) && (1 == theGlobals->actualObjects) )
1488 nodeFlags = theGlobals->catalogInfo.nodeFlags;
1494 FSDeleteContainerLevel(&itemToDelete, theGlobals);
1497 if ( noErr == theGlobals->result )
1503 theGlobals->catalogInfo.nodeFlags = nodeFlags & ~kFSNodeLockedMask;
1504 (void) FSSetCatalogInfo(&itemToDelete, kFSCatInfoNodeFlags, &theGlobals->catalogInfo);
1507 theGlobals->result = FSDeleteObject(&itemToDelete);
1510 } while ( noErr == theGlobals->result );
1513 if ( errFSNoMoreItems == theGlobals->result )
1515 theGlobals->result = noErr;
1532 FSDeleteContainerGlobals theGlobals;
1535 FSDeleteContainerLevel(container, &theGlobals);
1537 return ( theGlobals.result );
1585 theGlobals --> A pointer to a FSIterateContainerGlobals struct
1599 FSIterateContainerGlobals *theGlobals)
1605 if ( (theGlobals->maxLevels == 0) ||
1606 (theGlobals->currentLevel < theGlobals->maxLevels) )
1608 /* Open FSIterator for flat access to theGlobals->ref */
1609 theGlobals->result = FSOpenIterator(&theGlobals->ref, kFSIterateFlat, &iterator);
1610 require_noerr(theGlobals->result, FSOpenIterator);
1612 ++theGlobals->currentLevel; /* Go to next level */
1617 theGlobals->result = FSGetCatalogInfoBulk(iterator, 1, &theGlobals->actualObjects,
1618 &theGlobals->containerChanged, theGlobals->whichInfo, &theGlobals->catalogInfo,
1619 &theGlobals->ref, theGlobals->specPtr, theGlobals->namePtr);
1620 if ( (noErr == theGlobals->result || errFSNoMoreItems == theGlobals->result) &&
1621 (0 != theGlobals->actualObjects) )
1624 theGlobals->quitFlag = CallIterateContainerFilterProc(theGlobals->iterateFilter,
1625 theGlobals->containerChanged, theGlobals->currentLevel,
1626 &theGlobals->catalogInfo, &theGlobals->ref,
1627 theGlobals->specPtr, theGlobals->namePtr, theGlobals->yourDataPtr);
1629 if ( 0 != (theGlobals->catalogInfo.nodeFlags & kFSNodeIsDirectoryMask) )
1632 if ( !theGlobals->quitFlag )
1635 FSIterateContainerLevel(theGlobals);
1640 } while ( (noErr == theGlobals->result) && (!theGlobals->quitFlag) );
1644 if ( (errFSNoMoreItems == theGlobals->result) ||
1645 (afpAccessDenied == theGlobals->result) )
1647 theGlobals->result = noErr;
1650 --theGlobals->currentLevel; /* Return to previous level as we leave */
1674 FSIterateContainerGlobals theGlobals;
1682 theGlobals.iterateFilter = iterateFilter;
1684 theGlobals.whichInfo = whichInfo | kFSCatInfoNodeFlags;
1686 theGlobals.ref = *container;
1689 theGlobals.specPtr = &theGlobals.spec;
1693 theGlobals.specPtr = NULL;
1697 theGlobals.namePtr = &theGlobals.name;
1701 theGlobals.namePtr = NULL;
1703 theGlobals.yourDataPtr = yourDataPtr;
1704 theGlobals.maxLevels = maxLevels;
1705 theGlobals.currentLevel = 0;
1706 theGlobals.quitFlag = false;
1707 theGlobals.containerChanged = false;
1708 theGlobals.result = noErr;
1709 theGlobals.actualObjects = 0;
1712 FSIterateContainerLevel(&theGlobals);
1713 result = theGlobals.result;