pub type SecTransformCreateFP = Option<unsafe extern "C-unwind" fn(NonNull<CFString>, NonNull<SecTransform>, SecTransformImplementationRef) -> SecTransformInstanceBlock>;
SecCustomTransform
and SecTransform
and block2
only.Expand description
A function pointer to a function that will create a new instance of a custom transform.
Parameter name
: The name of the new custom transform. This name MUST be
unique.
Parameter newTransform
: The newly created transform Ref.
Parameter ref
: A reference that is bound to an instance of a custom
transform.
Returns: A SecTransformInstanceBlock that is used to create a new instance of a custom transform.
The CreateTransform function creates a new transform. The SecTransformInstanceBlock that is returned from this function provides the implementation of all of the overrides necessary to create the custom transform. This returned SecTransformInstanceBlock is also where the “instance” variables for the custom transform may be defined. See the example in the header section of this file for more detail.
See also Apple’s documentation
Aliased Type§
pub enum SecTransformCreateFP {
None,
Some(unsafe extern "C-unwind" fn(NonNull<CFString>, NonNull<CFType>, *const OpaqueSecTransformImplementation) -> *mut Block<dyn Fn() -> *mut CFError>),
}