1 //
2 //  MyQuickLook.h
3 //  Pcsxr
4 //
5 //  Created by C.W. Betts on 3/28/14.
6 //
7 //
8 
9 #ifndef Pcsxr_MyQuickLook_h
10 #define Pcsxr_MyQuickLook_h
11 
12 #include <CoreFoundation/CoreFoundation.h>
13 #include <CoreFoundation/CFPlugInCOM.h>
14 #include <CoreServices/CoreServices.h>
15 #include <QuickLook/QuickLook.h>
16 
17 // Apple deprecated __private_extern__ in Xcode 4.6.
18 // This is a convenience declaration to retain the old behavior.
19 #define __private_extern __attribute__((visibility("hidden")))
20 
21 // The thumbnail generation function to be implemented in GenerateThumbnailForURL.c
22 __private_extern OSStatus GenerateThumbnailForURL(void *thisInterface, QLThumbnailRequestRef thumbnail, CFURLRef url, CFStringRef contentTypeUTI, CFDictionaryRef options, CGSize maxSize);
23 __private_extern void CancelThumbnailGeneration(void* thisInterface, QLThumbnailRequestRef thumbnail);
24 
25 // The preview generation function to be implemented in GeneratePreviewForURL.c
26 __private_extern OSStatus GeneratePreviewForURL(void *thisInterface, QLPreviewRequestRef preview, CFURLRef url, CFStringRef contentTypeUTI, CFDictionaryRef options);
27 __private_extern void CancelPreviewGeneration(void *thisInterface, QLPreviewRequestRef preview);
28 
29 #endif
30