Return Vec<dc_location> from dc_get_locations

This commit is contained in:
Alexander Krotov
2019-08-15 20:29:36 +03:00
committed by holger krekel
parent d4dfc5443c
commit 37622af55a
3 changed files with 20 additions and 28 deletions

View File

@@ -1035,13 +1035,14 @@ pub unsafe extern "C" fn dc_get_locations(
assert!(!context.is_null());
let context = &*context;
dc_location::dc_get_locations(
let res = dc_location::dc_get_locations(
context,
chat_id,
contact_id,
timestamp_begin as i64,
timestamp_end as i64,
)
);
dc_array_t::from(res).into_raw()
}
#[no_mangle]