summaryrefslogtreecommitdiff
path: root/macosx/Pcsxr-QL/GenerateThumbnailForURL.c
diff options
context:
space:
mode:
authorSND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2014-03-28 22:51:46 +0000
committerSND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2014-03-28 22:51:46 +0000
commitebfb89de00860bbdbb6e9a72ed18a358acc7c056 (patch)
treed7c44382653ca1eb04db6876277edac4e6993a68 /macosx/Pcsxr-QL/GenerateThumbnailForURL.c
parenta92f831335493c2ed789a3f746861af49ef5e4c8 (diff)
downloadpcsxr-ebfb89de00860bbdbb6e9a72ed18a358acc7c056.tar.gz
OS X: Begin work on a QuickLook plug-in for freeze states.
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@89709 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'macosx/Pcsxr-QL/GenerateThumbnailForURL.c')
-rw-r--r--macosx/Pcsxr-QL/GenerateThumbnailForURL.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/macosx/Pcsxr-QL/GenerateThumbnailForURL.c b/macosx/Pcsxr-QL/GenerateThumbnailForURL.c
new file mode 100644
index 00000000..60211658
--- /dev/null
+++ b/macosx/Pcsxr-QL/GenerateThumbnailForURL.c
@@ -0,0 +1,21 @@
+#include <CoreFoundation/CoreFoundation.h>
+#include <CoreServices/CoreServices.h>
+#include <QuickLook/QuickLook.h>
+#include "MyQuickLook.h"
+
+/* -----------------------------------------------------------------------------
+ Generate a thumbnail for file
+
+ This function's job is to create thumbnail for designated file as fast as possible
+ ----------------------------------------------------------------------------- */
+
+OSStatus GenerateThumbnailForURL(void *thisInterface, QLThumbnailRequestRef thumbnail, CFURLRef url, CFStringRef contentTypeUTI, CFDictionaryRef options, CGSize maxSize)
+{
+ // To complete your generator please implement the function GenerateThumbnailForURL in GenerateThumbnailForURL.c
+ return noErr;
+}
+
+void CancelThumbnailGeneration(void *thisInterface, QLThumbnailRequestRef thumbnail)
+{
+ // Implement only if supported
+}