CFPlugInFactoryFunction
Callback function that a plug-in author must implement to create a plug-in instance.
Declaration
typealias CFPlugInFactoryFunction = (CFAllocator?, CFUUID?) -> UnsafeMutableRawPointer?Parameters
- allocator:
The allocator to use to allocate memory for the new object. Pass
NULLor kCFAllocatorDefault to use the default allocator. - typeUUID:
The UUID type to instantiate.
Discussion
The plug-in author’s implementation of this function is registered with CFPlugIn either statically in the plug-in’s information property list, or dynamically. This function is executed as a result of a call to CFPlugInInstanceCreate(_:_:_:) by the plug-in host.