19 #ifndef __FINDBYCONTENT__
20 #define __FINDBYCONTENT__
51 #if PRAGMA_STRUCT_ALIGN
52 #pragma options align = mac68k
53 #elif PRAGMA_STRUCT_PACKPUSH
55 #elif PRAGMA_STRUCT_PACK
71 englishHighWord = (long)0x80000000,
72 dutchHighWord = 0x40000000,
73 germanHighWord = 0x20000000,
74 swedishHighWord = 0x10000000,
75 danishHighWord = 0x08000000,
76 spanishHighWord = 0x04000000,
77 portugueseHighWord = 0x02000000,
78 italianHighWord = 0x01000000,
79 frenchHighWord = 0x00800000,
80 romanHighWord = 0x00400000,
82 icelandicHighWord = 0x00200000,
83 hebrewHighWord = 0x00100000,
84 arabicHighWord = 0x00080000,
87 croatianHighWord = 0x00020000,
88 turkishHighWord = 0x00010000,
89 romanianHighWord = 0x00008000,
90 greekHighWord = 0x00004000,
91 cyrillicHighWord = 0x00002000,
92 devanagariHighWord = 0x00001000,
93 gujuratiHighWord = 0x00000800,
94 gurmukhiHighWord = 0x00000400,
95 japaneseHighWord = 0x00000200,
96 koreanHighWord = 0x00000100,
97 kDefaultLanguagesHighWord = (
long)0xFF800000
113 kFBCphMakingIndexAccessor = 3,
114 kFBCphCompacting = 4,
115 kFBCphIndexWaiting = 5,
117 kFBCphMakingAccessAccessor = 7,
118 kFBCphAccessWaiting = 8,
119 kFBCphSummarizing = 9,
135 typedef char *FBCWordItem;
137 typedef FBCWordItem *FBCWordList;
151 typedef TVECTOR_UPP_TYPE(FBCCallbackProcPtr) FBCCallbackUPP;
162 #if !OPAQUE_UPP_TYPES
165 uppFBCCallbackProcInfo = 0x00000F91
173 #define NewFBCCallbackUPP(userRoutine) (userRoutine)
187 #if !OPAQUE_UPP_TYPES
191 #define DisposeFBCCallbackUPP(userUPP)
205 FBCCallbackUPP userUPP);
206 #if !OPAQUE_UPP_TYPES
209 FBCCallbackUPP userUPP)
211 return (*userUPP)(phase, percentDone, data);
214 #define InvokeFBCCallbackUPP(phase, percentDone, data, userUPP) \
215 (*userUPP)(phase, percentDone, data)
411 const FSSpec targetDirs[], UInt32 numTargets, UInt32 maxHits,
424 const FSSpec targetDirs[], UInt32 numTargets,
425 UInt32 maxHits, UInt32 maxHitWords);
437 UInt32 numExamples,
const FSSpec targetDirs[],
438 UInt32 numTargets, UInt32 maxHits, UInt32 maxHitWords);
450 const FSSpec targetDirs[], UInt32 numTargets,
451 UInt32 maxHits, UInt32 maxHitWords,
Boolean allIndexes,
481 FSSpec *theDocument);
516 UInt32 *wordCount, FBCWordList *
list);
528 UInt32 *wordCount, FBCWordList *
list);
545 FBCSummarize(
void *inBuf, UInt32 inLength,
void *outBuf, UInt32 *outLength,
546 UInt32 *numSentences);
614 UInt32 languageHighBits, UInt32 languageLowBits);
651 #if PRAGMA_STRUCT_ALIGN
652 #pragma options align = reset
653 #elif PRAGMA_STRUCT_PACKPUSH
655 #elif PRAGMA_STRUCT_PACK
659 #ifdef PRAGMA_IMPORT_OFF
File Manager (MFS, HFS, and HFS+) Interfaces.
OSErr FBCDoQuerySearch(FBCSearchSession theSession, char *queryText, const FSSpec targetDirs[], UInt32 numTargets, UInt32 maxHits, UInt32 maxHitWords)
void FBCSetHeapReservation(UInt32 bytes)
OSErr FBCDestroySearchSession(FBCSearchSession theSession)
OSErr FBCDoExampleSearch(FBCSearchSession theSession, const UInt32 *exampleHitNums, UInt32 numExamples, const FSSpec targetDirs[], UInt32 numTargets, UInt32 maxHits, UInt32 maxHitWords)
OSErr FBCDestroyWordList(FBCWordList theList, UInt32 wordCount)
Boolean InvokeFBCCallbackUPP(UInt16 phase, float percentDone, void *data, FBCCallbackUPP userUPP)
OSErr FBCGetTopicWords(FBCSearchSession theSession, UInt32 hitNumber, UInt32 *wordCount, FBCWordList *list)
OSErr FBCIndexItemsInLanguages(FSSpecArrayPtr theItems, UInt32 itemCount, UInt32 languageHighBits, UInt32 languageLowBits)
OSErr FBCCreateSearchSession(FBCSearchSession *searchSession)
OSErr FBCVolumeIndexTimeStamp(SInt16 theVRefNum, UInt32 *timeStamp)
OSErr FBCGetSessionVolumes(FBCSearchSession theSession, SInt16 vRefNums[], UInt16 *numVolumes)
OSErr FBCIndexItems(FSSpecArrayPtr theItems, UInt32 itemCount)
OSErr FBCGetHitDocument(FBCSearchSession theSession, UInt32 hitNumber, FSSpec *theDocument)
typedef CALLBACK_API_C(Boolean, FBCCallbackProcPtr)(UInt16 phase
void DisposeFBCCallbackUPP(FBCCallbackUPP userUPP)
OSErr FBCGetHitScore(FBCSearchSession theSession, UInt32 hitNumber, float *score)
FBCCallbackUPP NewFBCCallbackUPP(FBCCallbackProcPtr userRoutine)
OSErr FBCCloneSearchSession(FBCSearchSession original, FBCSearchSession *clone)
void FBCSetCallback(FBCCallbackUPP fn, void *data)
Boolean FBCVolumeIsIndexed(SInt16 theVRefNum)
OSErr FBCSummarize(void *inBuf, UInt32 inLength, void *outBuf, UInt32 *outLength, UInt32 *numSentences)
OSErr FBCVolumeIndexPhysicalSize(SInt16 theVRefNum, UInt32 *size)
OSErr FBCDoCFStringSearch(FBCSearchSession theSession, CFStringRef queryString, const FSSpec targetDirs[], UInt32 numTargets, UInt32 maxHits, UInt32 maxHitWords)
OSErr FBCFindIndexFileFolderForFolder(FSRef *inFolder, FSRef *outFolder)
OSErr FBCSetSessionVolumes(FBCSearchSession theSession, const SInt16 vRefNums[], UInt16 numVolumes)
struct OpaqueFBCSearchSession * FBCSearchSession
Definition: FindByContent.h:133
OSErr FBCDeleteIndexFileForFolder(const FSRef *folder)
OSErr FBCGetHitCount(FBCSearchSession theSession, UInt32 *count)
OSErr FBCReleaseSessionHits(FBCSearchSession theSession)
OSErr FBCRemoveVolumeFromSession(FBCSearchSession theSession, SInt16 vRefNum)
OSErr FBCGetSessionVolumeCount(FBCSearchSession theSession, UInt16 *count)
OSErr FBCAddAllVolumesToSession(FBCSearchSession theSession, Boolean includeRemote)
Boolean FBCVolumeIsRemote(SInt16 theVRefNum)
OSErr FBCGetMatchedWords(FBCSearchSession theSession, UInt32 hitNumber, UInt32 *wordCount, FBCWordList *list)
OSErr FBCGetHitDocumentRef(FBCSearchSession theSession, UInt32 hitNumber, FSRef *theDocument)
OSErr FBCBlindExampleSearch(FSSpec examples[], UInt32 numExamples, const FSSpec targetDirs[], UInt32 numTargets, UInt32 maxHits, UInt32 maxHitWords, Boolean allIndexes, Boolean includeRemote, FBCSearchSession *theSession)
OSErr FBCAddVolumeToSession(FBCSearchSession theSession, SInt16 vRefNum)
Basic Macintosh data types.
unsigned char Boolean
Definition: MacTypes.h:318
Definition: TranslationExtensions.h:114