Function

CFBundleGetFunctionPointerForName(_:_:)

Returns a pointer to a function in a bundle’s executable code using the function name as the search key.

Declaration

func CFBundleGetFunctionPointerForName(_ bundle: CFBundle!, _ functionName: CFString!) -> UnsafeMutableRawPointer!

Parameters

bundle

The bundle to examine.

functionName

The name of the function to locate.

Return Value

A pointer to a function in a bundle’s executable code, or NULL if functionName cannot be found. Ownership follows the The Get Rule.

Discussion

Calling this function will cause the bundle’s code to be loaded if necessary.

See Also

Managing Executable Code

func CFBundleGetFunctionPointersForNames(CFBundle!, CFArray!, UnsafeMutablePointer<UnsafeMutableRawPointer?>!)

Constructs a function table containing pointers to all of the functions found in a bundle’s main executable code.