Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CFPropertyList serialization #90

Merged
merged 3 commits into from Jan 5, 2017
Merged
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Prev

Remove unnecessary casts in propertylist

  • Loading branch information
Christian Howe
Christian Howe committed Jan 5, 2017
commit 37e11bd27e59b72aac2cd1ff56eff86fcbeecbf8
@@ -30,8 +30,8 @@ pub fn create_with_data(data: CFData,
let property_list = CFPropertyListCreateWithData(kCFAllocatorDefault,
data.as_concrete_TypeRef(),
options,
&mut format as *mut CFPropertyListFormat,
&mut error as *mut CFErrorRef);
&mut format,
&mut error);
if property_list.is_null() {
Err(TCFType::wrap_under_create_rule(error))
} else {
@@ -47,7 +47,7 @@ pub fn create_data(property_list: *const c_void, format: CFPropertyListFormat) -
property_list,
format,
0,
&mut error as *mut CFErrorRef);
&mut error);
if data_ref.is_null() {
Err(TCFType::wrap_under_create_rule(error))
} else {
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.