LibreOffice Module extensions (master) 1
Classes | Macros | Functions | Variables
main.m File Reference
#include <CoreFoundation/CoreFoundation.h>
#include <CoreFoundation/CFPlugInCOM.h>
#include <CoreServices/CoreServices.h>
#include "GetMetadataForFile.h"
Include dependency graph for main.m:

Go to the source code of this file.

Classes

struct  MetadataImporterPluginType
 

Macros

#define PLUGIN_ID   "A3FCC88D-B9A6-4364-8B93-92123C8A2D18"
 

Functions

static MetadataImporterPluginTypeAllocMetadataImporterPluginType (CFUUIDRef inFactoryID)
 
static void DeallocMetadataImporterPluginType (MetadataImporterPluginType *thisInstance)
 
static HRESULT MetadataImporterQueryInterface (void *thisInstance, REFIID iid, LPVOID *ppv)
 
static ULONG MetadataImporterPluginAddRef (void *thisInstance)
 
static ULONG MetadataImporterPluginRelease (void *thisInstance)
 
 __attribute__ ((visibility("default"))) void *MetadataImporterPluginFactory(CFAllocatorRef allocator
 
 if (CFEqual(typeID, kMDImporterTypeID))
 

Variables

static MDImporterInterfaceStruct testInterfaceFtbl
 
CFUUIDRef typeID
 
MetadataImporterPluginTyperesult
 
CFUUIDRef uuid
 
return NULL
 

Macro Definition Documentation

◆ PLUGIN_ID

#define PLUGIN_ID   "A3FCC88D-B9A6-4364-8B93-92123C8A2D18"

Definition at line 43 of file main.m.

Function Documentation

◆ __attribute__()

__attribute__ ( (visibility("default"))  )

◆ AllocMetadataImporterPluginType()

MetadataImporterPluginType * AllocMetadataImporterPluginType ( CFUUIDRef  inFactoryID)
static

◆ DeallocMetadataImporterPluginType()

void DeallocMetadataImporterPluginType ( MetadataImporterPluginType thisInstance)
static

Definition at line 115 of file main.m.

References MetadataImporterPluginType::factoryID.

Referenced by MetadataImporterPluginRelease().

◆ if()

if ( CFEqual(typeID, kMDImporterTypeID)  )

Definition at line 201 of file main.m.

References AllocMetadataImporterPluginType(), PLUGIN_ID, result, and uuid.

◆ MetadataImporterPluginAddRef()

ULONG MetadataImporterPluginAddRef ( void *  thisInstance)
static

Definition at line 166 of file main.m.

◆ MetadataImporterPluginRelease()

ULONG MetadataImporterPluginRelease ( void *  thisInstance)
static

Definition at line 176 of file main.m.

References DeallocMetadataImporterPluginType().

◆ MetadataImporterQueryInterface()

HRESULT MetadataImporterQueryInterface ( void *  thisInstance,
REFIID  iid,
LPVOID *  ppv 
)
static

Definition at line 130 of file main.m.

References NULL.

Variable Documentation

◆ NULL

return NULL

◆ result

◆ testInterfaceFtbl

MDImporterInterfaceStruct testInterfaceFtbl
static
Initial value:
= {
}
Boolean GetMetadataForFile(void *thisInterface, CFMutableDictionaryRef attributes, CFStringRef contentTypeUTI, CFStringRef pathToFile)
return NULL
Definition: main.m:208
static ULONG MetadataImporterPluginRelease(void *thisInstance)
Definition: main.m:176
static HRESULT MetadataImporterQueryInterface(void *thisInstance, REFIID iid, LPVOID *ppv)
Definition: main.m:130
static ULONG MetadataImporterPluginAddRef(void *thisInstance)
Definition: main.m:166

Definition at line 76 of file main.m.

Referenced by AllocMetadataImporterPluginType().

◆ typeID

CFUUIDRef typeID
Initial value:
{
(void) allocator

Definition at line 192 of file main.m.

◆ uuid

CFUUIDRef uuid

Definition at line 196 of file main.m.

Referenced by if().