Updates for newest nightly and bindgen

pull/4/head
Thijs Cadier 9 years ago
parent e02ff4d627
commit bae6556fed

@ -1,9 +1,6 @@
#![feature(path_ext)]
extern crate bindgen;
use std::env;
use std::fs::PathExt;
use std::path::Path;
use std::process::Command;

@ -3,7 +3,7 @@ use std::ptr;
use std::borrow::Cow;
use std::fmt;
use std::slice;
use libc::types::common::c95::c_void;
use libc::c_void;
use mongoc::bindings;
use bson;

@ -52,14 +52,14 @@ fn init() {
});
}
extern fn mongoc_log_handler(
unsafe extern "C" fn mongoc_log_handler(
log_level: bindings::mongoc_log_level_t,
log_domain: *const ::libc::c_char,
message: *const ::libc::c_char,
_: *mut ::libc::c_void
) {
let log_domain_str = unsafe { CStr::from_ptr(log_domain).to_string_lossy() };
let message_str = unsafe { CStr::from_ptr(message).to_string_lossy() };
let log_domain_str = CStr::from_ptr(log_domain).to_string_lossy();
let message_str = CStr::from_ptr(message).to_string_lossy();
let log_line = format!("mongoc: {} - {}", log_domain_str, message_str);
match log_level {

Loading…
Cancel
Save