1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
use core_foundation_sys::base::{CFTypeRef, CFTypeID, Boolean};
use core_foundation_sys::error::CFErrorRef;
use core_foundation_sys::string::CFStringRef;

pub type SecTransformRef = CFTypeRef;

extern "C" {
    pub static kSecTransformInputAttributeName: CFStringRef;

    pub fn SecTransformGetTypeID() -> CFTypeID;

    pub fn SecTransformSetAttribute(transformRef: SecTransformRef,
                                    key: CFStringRef,
                                    value: CFTypeRef,
                                    error: *mut CFErrorRef)
                                    -> Boolean;

    pub fn SecTransformExecute(transformRef: SecTransformRef,
                               errorRef: *mut CFErrorRef)
                               -> CFTypeRef;
}