#ifdef __cplusplus
extern "C" {
#endif
Boolean GetMetadataForFile(void* thisInterface,
CFMutableDictionaryRef attributes,
CFStringRef contentTypeUTI,
CFStringRef pathToFile)
{
/* Pull any available metadata from the file at the specified path
*/
/* Return the attribute keys and attribute values in the dict */
/* Return TRUE if successful, FALSE if there was no data provided */
// Convert the path to an FSRef
char strTemp[2048];
FSRef fsr;
CFStringGetCString(pathToFile, strTemp, 2048,
kCFStringEncodingASCII);
if (noErr != FSPathMakeRef((unsigned char *)strTemp,
&fsr, NULL))
return FALSE;
// Now that we have our FSRef, parse the RIFF file
return (RIFF_Metadata(&fsr, attributes));
}
#ifdef __cplusplus
}
#endif