pub unsafe extern "C-unwind" fn SecTransformCustomSetAttribute(
ref: SecTransformImplementationRef,
attribute: &SecTransformStringOrAttribute,
type: SecTransformMetaAttributeType,
value: Option<&CFType>,
) -> Option<CFRetained<CFType>>
๐Deprecated: SecTransform is no longer supported
Available on crate feature
SecCustomTransform
only.Expand description
Allow a custom transform to set an attribute value
Parameter ref
: A SecTransformImplementationRef that is bound to an instance
of a custom transform.
Parameter attribute
: The name or the attribute handle of the attribute whose
value is to be set.
Parameter type
: The type of data to be retrieved for the attribute. See the
discussion on SecTransformMetaAttributeType for details.
Parameter value
: The new value for the attribute
Returns: A CFErrorRef if an error occured , NULL otherwise.
Unlike the SecTransformSetAttribute API this API can set attribute values while a transform is executing. These values are limited to the custom transform instance that is bound to the ref parameter.
ยงSafety
ref
must be a valid pointer.attribute
should be of the correct type.value
should be of the correct type.