From 99d48611d9604491cc2e95380a2b13e00db4d4b5 Mon Sep 17 00:00:00 2001 From: "SND\\MaddTheSane_cp" Date: Fri, 6 Jun 2014 16:25:30 +0000 Subject: OS X: Begin working on a metadata importer for the memory cards. git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@90602 e17a0e51-4ae3-4d35-97c3-1a29b211df97 --- macosx/Psx-Memcard/GetMetadataForFile.m | 34 +++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 macosx/Psx-Memcard/GetMetadataForFile.m (limited to 'macosx/Psx-Memcard/GetMetadataForFile.m') diff --git a/macosx/Psx-Memcard/GetMetadataForFile.m b/macosx/Psx-Memcard/GetMetadataForFile.m new file mode 100644 index 00000000..731cd928 --- /dev/null +++ b/macosx/Psx-Memcard/GetMetadataForFile.m @@ -0,0 +1,34 @@ +// +// GetMetadataForFile.m +// Psx-Memcard +// +// Created by C.W. Betts on 6/6/14. +// +// + +#include +#import +#include "GetMetadataForFile.h" + +//============================================================================== +// +// Get metadata attributes from document files +// +// The purpose of this function is to extract useful information from the +// file formats for your document, and set the values into the attribute +// dictionary for Spotlight to include. +// +//============================================================================== + +Boolean GetMetadataForFile(void *thisInterface, CFMutableDictionaryRef attributes, CFStringRef contentTypeUTI, CFStringRef pathToFile) +{ + Boolean ok = FALSE; + @autoreleasepool { + NSMutableDictionary *attr = (__bridge NSMutableDictionary*)attributes; + NSString *path = (__bridge NSString*)pathToFile; + + } + + // Return the status + return ok; +} -- cgit v1.2.3