revert renaming of data2_str to data3_str, while this looks clearer at a first glance, it would mean to introduce much noise in the existing bindings and understandings

This commit is contained in:
B. Petersen
2020-05-25 12:58:21 +02:00
parent 2156c6cd7a
commit ec601a3381
3 changed files with 9 additions and 9 deletions

View File

@@ -403,9 +403,9 @@ pub unsafe extern "C" fn dc_event_get_data2_int(event: *mut dc_event_t) -> libc:
}
#[no_mangle]
pub unsafe extern "C" fn dc_event_get_data3_str(event: *mut dc_event_t) -> *mut libc::c_char {
pub unsafe extern "C" fn dc_event_get_data2_str(event: *mut dc_event_t) -> *mut libc::c_char {
if event.is_null() {
eprintln!("ignoring careless call to dc_event_get_data3_str()");
eprintln!("ignoring careless call to dc_event_get_data2_str()");
return ptr::null_mut();
}