summaryrefslogtreecommitdiff
path: root/macosx/Pcsxr-QL/GeneratePreviewForURL.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/GeneratePreviewForURL.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/GeneratePreviewForURL.c')
-rw-r--r--macosx/Pcsxr-QL/GeneratePreviewForURL.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/macosx/Pcsxr-QL/GeneratePreviewForURL.c b/macosx/Pcsxr-QL/GeneratePreviewForURL.c
new file mode 100644
index 00000000..a57f116f
--- /dev/null
+++ b/macosx/Pcsxr-QL/GeneratePreviewForURL.c
@@ -0,0 +1,21 @@
+#include <CoreFoundation/CoreFoundation.h>
+#include <CoreServices/CoreServices.h>
+#include <QuickLook/QuickLook.h>
+#include "MyQuickLook.h"
+
+/* -----------------------------------------------------------------------------
+ Generate a preview for file
+
+ This function's job is to create preview for designated file
+ ----------------------------------------------------------------------------- */
+
+OSStatus GeneratePreviewForURL(void *thisInterface, QLPreviewRequestRef preview, CFURLRef url, CFStringRef contentTypeUTI, CFDictionaryRef options)
+{
+ // To complete your generator please implement the function GeneratePreviewForURL in GeneratePreviewForURL.c
+ return noErr;
+}
+
+void CancelPreviewGeneration(void *thisInterface, QLPreviewRequestRef preview)
+{
+ // Implement only if supported
+}