30 lines
1.2 KiB
C
30 lines
1.2 KiB
C
//
|
|
// MyQuickLook.h
|
|
// Pcsxr
|
|
//
|
|
// Created by C.W. Betts on 3/28/14.
|
|
//
|
|
//
|
|
|
|
#ifndef Pcsxr_MyQuickLook_h
|
|
#define Pcsxr_MyQuickLook_h
|
|
|
|
#include <CoreFoundation/CoreFoundation.h>
|
|
#include <CoreFoundation/CFPlugInCOM.h>
|
|
#include <CoreServices/CoreServices.h>
|
|
#include <QuickLook/QuickLook.h>
|
|
|
|
// Apple deprecated __private_extern__ in Xcode 4.6.
|
|
// This is a convenience declaration to retain the old behavior.
|
|
#define __private_extern __attribute__((visibility("hidden")))
|
|
|
|
// The thumbnail generation function to be implemented in GenerateThumbnailForURL.c
|
|
__private_extern OSStatus GenerateThumbnailForURL(void *thisInterface, QLThumbnailRequestRef thumbnail, CFURLRef url, CFStringRef contentTypeUTI, CFDictionaryRef options, CGSize maxSize);
|
|
__private_extern void CancelThumbnailGeneration(void* thisInterface, QLThumbnailRequestRef thumbnail);
|
|
|
|
// The preview generation function to be implemented in GeneratePreviewForURL.c
|
|
__private_extern OSStatus GeneratePreviewForURL(void *thisInterface, QLPreviewRequestRef preview, CFURLRef url, CFStringRef contentTypeUTI, CFDictionaryRef options);
|
|
__private_extern void CancelPreviewGeneration(void *thisInterface, QLPreviewRequestRef preview);
|
|
|
|
#endif
|