17 lines
653 B
Rust
17 lines
653 B
Rust
use libc::{c_void, c_char, size_t};
|
|
|
|
pub type CGDataProviderRef = *c_void;
|
|
pub type CGDataProviderReleaseDataCallback = *c_void;
|
|
|
|
#[link_args="-framework CoreGraphics"]
|
|
#[nolink]
|
|
extern {
|
|
pub fn CGDataProviderCreateWithFilename(filename: *c_char) -> CGDataProviderRef;
|
|
pub fn CGDataProviderCreateWithData(info: *c_void,
|
|
data: *c_void,
|
|
size: size_t,
|
|
releaseData: CGDataProviderReleaseDataCallback
|
|
) -> CGDataProviderRef;
|
|
pub fn CGDataProviderRelease(provider: CGDataProviderRef);
|
|
}
|