objc2-core-foundation 0.3.2

Bindings to the CoreFoundation framework
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use core::ptr::NonNull;

use crate::*;

#[cfg(feature = "CFURL")]
#[inline]
pub extern "C-unwind" fn CFCopyHomeDirectoryURL() -> Option<CFRetained<CFURL>> {
    extern "C-unwind" {
        fn CFCopyHomeDirectoryURL() -> Option<NonNull<CFURL>>;
    }
    let ret = unsafe { CFCopyHomeDirectoryURL() };
    ret.map(|ret| unsafe { CFRetained::from_raw(ret) })
}