diff --git a/cg.rs b/cg.rs index 5d2185e..a7258ca 100644 --- a/cg.rs +++ b/cg.rs @@ -4,17 +4,17 @@ use libc::{c_void, c_char, size_t}; #[nolink] extern mod cg { - fn CGDataProviderCreateWithFilename(filename: *c_char) -> CGDataProviderRef; - fn CGDataProviderCreateWithData(info: *c_void, - data: *c_void, - size: size_t, - releaseData: CGDataProviderReleaseDataCallback - ) -> CGDataProviderRef; - fn CGDataProviderRelease(provider: CGDataProviderRef); - fn CGFontCreateWithDataProvider(provider: CGDataProviderRef) -> CGFontRef; - fn CGFontRelease(font: CGFontRef); + 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); + pub fn CGFontCreateWithDataProvider(provider: CGDataProviderRef) -> CGFontRef; + pub fn CGFontRelease(font: CGFontRef); } -type CGFontRef = *c_void; -type CGDataProviderRef = *c_void; -type CGDataProviderReleaseDataCallback = *c_void; \ No newline at end of file +pub type CGFontRef = *c_void; +pub type CGDataProviderRef = *c_void; +pub type CGDataProviderReleaseDataCallback = *c_void; diff --git a/cocoa.rc b/cocoa.rc index 6d72732..072e5f1 100644 --- a/cocoa.rc +++ b/cocoa.rc @@ -9,7 +9,7 @@ extern mod std; -mod appkit; -mod base; -mod foundation; -mod cg; +pub mod appkit; +pub mod base; +pub mod foundation; +pub mod cg;