9236908e072b338e4ac1e2e598dd0518bc2fb85e
sys: Fix CFComparatorFunction and move it to `base` module CFComparatorFunction declaration was missing one argument (void *context). Here's its declaration from CFBase.h: ```c typedef CFComparisonResult (*CFComparatorFunction)(const void *val1, const void *val2, void *context); ``` And its declaration in array.rs: ```rust pub type CFComparatorFunction = extern "C" fn(val1: *const c_void, val2: *const c_void) -> CFComparisonResult; ``` Since it's declared in CFBase.h, I moved it to `base` module.
core-foundation-rs
Compatibility
Targets macOS 10.7 by default.
To enable features added in macOS 10.8, set Cargo feature mac_os_10_8_features. To have both 10.8 features and 10.7 compatibility, also set mac_os_10_7_support. Setting both requires weak linkage, which is a nightly-only feature as of Rust 1.19.
For more experimental but more complete, generated bindings take a look at https://github.com/michaelwu/RustKit.
Contributing
If you wish to start contributing or even make a one-off change, simply submit a pull request with the code or documentation change and we'll go from there.
Description
Languages
Rust
100%