143 CFUUIDRef interfaceID;
145 interfaceID = CFUUIDCreateFromUUIDBytes(kCFAllocatorDefault,iid);
147 if (CFEqual(interfaceID,kMDImporterInterfaceID)){
154 CFRelease(interfaceID);
157 if (CFEqual(interfaceID,IUnknownUUID)){
161 CFRelease(interfaceID);
166 CFRelease(interfaceID);
167 return E_NOINTERFACE;
void * MetadataImporterPluginFactory(CFAllocatorRef allocator, CFUUIDRef typeID)
void DeallocMetadataImporterPluginType(MetadataImporterPluginType *thisInstance)
MetadataImporterPluginType * AllocMetadataImporterPluginType(CFUUIDRef inFactoryID)
Boolean GetMetadataForFile(void *thisInterface, CFMutableDictionaryRef attributes, CFStringRef contentTypeUTI, CFStringRef pathToFile)
static MDImporterInterfaceStruct testInterfaceFtbl
struct __MetadataImporterPluginType MetadataImporterPluginType
ULONG MetadataImporterPluginRelease(void *thisInstance)
HRESULT MetadataImporterQueryInterface(void *thisInstance, REFIID iid, LPVOID *ppv)
__attribute__((visibility("default")))
ULONG MetadataImporterPluginAddRef(void *thisInstance)