pub type write_modeldata_func = unsafe extern "C" fn(userhandle: *mut c_void, buf: *mut c_char) -> c_int;