apple_security_framework_sys/
transform.rs

1use core_foundation_sys::base::Boolean;
2use core_foundation_sys::base::CFTypeID;
3use core_foundation_sys::base::CFTypeRef;
4use core_foundation_sys::error::CFErrorRef;
5use core_foundation_sys::string::CFStringRef;
6
7pub type SecTransformRef = CFTypeRef;
8
9extern "C" {
10    pub static kSecTransformInputAttributeName: CFStringRef;
11
12    pub fn SecTransformGetTypeID() -> CFTypeID;
13
14    pub fn SecTransformSetAttribute(
15        transformRef: SecTransformRef,
16        key: CFStringRef,
17        value: CFTypeRef,
18        error: *mut CFErrorRef,
19    ) -> Boolean;
20
21    pub fn SecTransformExecute(
22        transformRef: SecTransformRef,
23        errorRef: *mut CFErrorRef,
24    ) -> CFTypeRef;
25}