mirror of
https://github.com/chatmail/core.git
synced 2026-05-22 16:26:31 +03:00
Store IDs in dc_array as u32
This changes dc_array_get_raw API
This commit is contained in:
committed by
holger krekel
parent
5b47409fb0
commit
29d4f6888d
@@ -387,7 +387,7 @@ char* dc_array_get_marker (const dc_array_t*, size_t index);
|
||||
int dc_array_is_independent (const dc_array_t*, size_t index);
|
||||
|
||||
int dc_array_search_id (const dc_array_t*, uint32_t needle, size_t* indx);
|
||||
const uintptr_t* dc_array_get_raw (const dc_array_t*);
|
||||
const uint32_t* dc_array_get_raw (const dc_array_t*);
|
||||
|
||||
|
||||
/**
|
||||
|
||||
@@ -1171,7 +1171,7 @@ pub unsafe extern "C" fn dc_array_search_id(
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
pub unsafe extern "C" fn dc_array_get_raw(array: *const dc_array_t) -> *const libc::size_t {
|
||||
pub unsafe extern "C" fn dc_array_get_raw(array: *const dc_array_t) -> *const u32 {
|
||||
assert!(!array.is_null());
|
||||
|
||||
dc_array::dc_array_get_raw(array)
|
||||
|
||||
Reference in New Issue
Block a user