mirror of
https://github.com/chatmail/core.git
synced 2026-05-16 21:36:30 +03:00
ffi: fixup types
This commit is contained in:
@@ -687,7 +687,7 @@ pub unsafe extern "C" fn dc_array_unref(a: *mut dc_array::dc_array_t) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[no_mangle]
|
#[no_mangle]
|
||||||
pub unsafe extern "C" fn dc_array_add_uint(array: *mut dc_array_t, item: libc::c_ulong) {
|
pub unsafe extern "C" fn dc_array_add_uint(array: *mut dc_array_t, item: libc::uintptr_t) {
|
||||||
dc_array::dc_array_add_uint(array, item)
|
dc_array::dc_array_add_uint(array, item)
|
||||||
}
|
}
|
||||||
#[no_mangle]
|
#[no_mangle]
|
||||||
@@ -700,83 +700,83 @@ pub unsafe extern "C" fn dc_array_add_ptr(array: *mut dc_array_t, item: *mut lib
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[no_mangle]
|
#[no_mangle]
|
||||||
pub unsafe extern "C" fn dc_array_get_cnt(array: *const dc_array_t) -> libc::c_ulong {
|
pub unsafe extern "C" fn dc_array_get_cnt(array: *const dc_array_t) -> libc::size_t {
|
||||||
dc_array::dc_array_get_cnt(array)
|
dc_array::dc_array_get_cnt(array)
|
||||||
}
|
}
|
||||||
#[no_mangle]
|
#[no_mangle]
|
||||||
pub unsafe extern "C" fn dc_array_get_uint(
|
pub unsafe extern "C" fn dc_array_get_uint(
|
||||||
array: *const dc_array_t,
|
array: *const dc_array_t,
|
||||||
index: libc::c_ulong,
|
index: libc::size_t,
|
||||||
) -> libc::c_ulong {
|
) -> libc::uintptr_t {
|
||||||
dc_array::dc_array_get_uint(array, index)
|
dc_array::dc_array_get_uint(array, index)
|
||||||
}
|
}
|
||||||
#[no_mangle]
|
#[no_mangle]
|
||||||
pub unsafe extern "C" fn dc_array_get_id(
|
pub unsafe extern "C" fn dc_array_get_id(
|
||||||
array: *const dc_array_t,
|
array: *const dc_array_t,
|
||||||
index: libc::c_ulong,
|
index: libc::size_t,
|
||||||
) -> libc::c_uint {
|
) -> libc::c_uint {
|
||||||
dc_array::dc_array_get_id(array, index)
|
dc_array::dc_array_get_id(array, index)
|
||||||
}
|
}
|
||||||
#[no_mangle]
|
#[no_mangle]
|
||||||
pub unsafe extern "C" fn dc_array_get_ptr(
|
pub unsafe extern "C" fn dc_array_get_ptr(
|
||||||
array: *const dc_array_t,
|
array: *const dc_array_t,
|
||||||
index: libc::c_ulong,
|
index: libc::size_t,
|
||||||
) -> *mut libc::c_void {
|
) -> *mut libc::c_void {
|
||||||
dc_array::dc_array_get_ptr(array, index)
|
dc_array::dc_array_get_ptr(array, index)
|
||||||
}
|
}
|
||||||
#[no_mangle]
|
#[no_mangle]
|
||||||
pub unsafe extern "C" fn dc_array_get_latitude(
|
pub unsafe extern "C" fn dc_array_get_latitude(
|
||||||
array: *const dc_array_t,
|
array: *const dc_array_t,
|
||||||
index: libc::c_ulong,
|
index: libc::size_t,
|
||||||
) -> libc::c_double {
|
) -> libc::c_double {
|
||||||
dc_array::dc_array_get_latitude(array, index)
|
dc_array::dc_array_get_latitude(array, index)
|
||||||
}
|
}
|
||||||
#[no_mangle]
|
#[no_mangle]
|
||||||
pub unsafe extern "C" fn dc_array_get_longitude(
|
pub unsafe extern "C" fn dc_array_get_longitude(
|
||||||
array: *const dc_array_t,
|
array: *const dc_array_t,
|
||||||
index: libc::c_ulong,
|
index: libc::size_t,
|
||||||
) -> libc::c_double {
|
) -> libc::c_double {
|
||||||
dc_array::dc_array_get_longitude(array, index)
|
dc_array::dc_array_get_longitude(array, index)
|
||||||
}
|
}
|
||||||
#[no_mangle]
|
#[no_mangle]
|
||||||
pub unsafe extern "C" fn dc_array_get_accuracy(
|
pub unsafe extern "C" fn dc_array_get_accuracy(
|
||||||
array: *const dc_array_t,
|
array: *const dc_array_t,
|
||||||
index: libc::c_ulong,
|
index: libc::size_t,
|
||||||
) -> libc::c_double {
|
) -> libc::c_double {
|
||||||
dc_array::dc_array_get_accuracy(array, index)
|
dc_array::dc_array_get_accuracy(array, index)
|
||||||
}
|
}
|
||||||
#[no_mangle]
|
#[no_mangle]
|
||||||
pub unsafe extern "C" fn dc_array_get_timestamp(
|
pub unsafe extern "C" fn dc_array_get_timestamp(
|
||||||
array: *const dc_array_t,
|
array: *const dc_array_t,
|
||||||
index: libc::c_ulong,
|
index: libc::size_t,
|
||||||
) -> libc::c_long {
|
) -> libc::c_long {
|
||||||
dc_array::dc_array_get_timestamp(array, index)
|
dc_array::dc_array_get_timestamp(array, index)
|
||||||
}
|
}
|
||||||
#[no_mangle]
|
#[no_mangle]
|
||||||
pub unsafe extern "C" fn dc_array_get_chat_id(
|
pub unsafe extern "C" fn dc_array_get_chat_id(
|
||||||
array: *const dc_array_t,
|
array: *const dc_array_t,
|
||||||
index: libc::c_ulong,
|
index: libc::size_t,
|
||||||
) -> libc::c_uint {
|
) -> libc::c_uint {
|
||||||
dc_array::dc_array_get_chat_id(array, index)
|
dc_array::dc_array_get_chat_id(array, index)
|
||||||
}
|
}
|
||||||
#[no_mangle]
|
#[no_mangle]
|
||||||
pub unsafe extern "C" fn dc_array_get_contact_id(
|
pub unsafe extern "C" fn dc_array_get_contact_id(
|
||||||
array: *const dc_array_t,
|
array: *const dc_array_t,
|
||||||
index: libc::c_ulong,
|
index: libc::size_t,
|
||||||
) -> libc::c_uint {
|
) -> libc::c_uint {
|
||||||
dc_array::dc_array_get_contact_id(array, index)
|
dc_array::dc_array_get_contact_id(array, index)
|
||||||
}
|
}
|
||||||
#[no_mangle]
|
#[no_mangle]
|
||||||
pub unsafe extern "C" fn dc_array_get_msg_id(
|
pub unsafe extern "C" fn dc_array_get_msg_id(
|
||||||
array: *const dc_array_t,
|
array: *const dc_array_t,
|
||||||
index: libc::c_ulong,
|
index: libc::size_t,
|
||||||
) -> libc::c_uint {
|
) -> libc::c_uint {
|
||||||
dc_array::dc_array_get_msg_id(array, index)
|
dc_array::dc_array_get_msg_id(array, index)
|
||||||
}
|
}
|
||||||
#[no_mangle]
|
#[no_mangle]
|
||||||
pub unsafe extern "C" fn dc_array_get_marker(
|
pub unsafe extern "C" fn dc_array_get_marker(
|
||||||
array: *const dc_array_t,
|
array: *const dc_array_t,
|
||||||
index: libc::c_ulong,
|
index: libc::size_t,
|
||||||
) -> *mut libc::c_char {
|
) -> *mut libc::c_char {
|
||||||
dc_array::dc_array_get_marker(array, index)
|
dc_array::dc_array_get_marker(array, index)
|
||||||
}
|
}
|
||||||
@@ -785,12 +785,12 @@ pub unsafe extern "C" fn dc_array_get_marker(
|
|||||||
pub unsafe extern "C" fn dc_array_search_id(
|
pub unsafe extern "C" fn dc_array_search_id(
|
||||||
array: *const dc_array_t,
|
array: *const dc_array_t,
|
||||||
needle: libc::c_uint,
|
needle: libc::c_uint,
|
||||||
ret_index: *mut libc::c_ulong,
|
ret_index: *mut libc::size_t,
|
||||||
) -> libc::c_int {
|
) -> libc::c_int {
|
||||||
dc_array::dc_array_search_id(array, needle, ret_index)
|
dc_array::dc_array_search_id(array, needle, ret_index)
|
||||||
}
|
}
|
||||||
#[no_mangle]
|
#[no_mangle]
|
||||||
pub unsafe extern "C" fn dc_array_get_raw(array: *const dc_array_t) -> *const libc::c_ulong {
|
pub unsafe extern "C" fn dc_array_get_raw(array: *const dc_array_t) -> *const libc::size_t {
|
||||||
dc_array::dc_array_get_raw(array)
|
dc_array::dc_array_get_raw(array)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -807,14 +807,14 @@ pub unsafe extern "C" fn dc_chatlist_unref(chatlist: *mut dc_chatlist::dc_chatli
|
|||||||
#[no_mangle]
|
#[no_mangle]
|
||||||
pub unsafe extern "C" fn dc_chatlist_get_cnt(
|
pub unsafe extern "C" fn dc_chatlist_get_cnt(
|
||||||
chatlist: *mut dc_chatlist::dc_chatlist_t,
|
chatlist: *mut dc_chatlist::dc_chatlist_t,
|
||||||
) -> libc::c_ulong {
|
) -> libc::size_t {
|
||||||
dc_chatlist::dc_chatlist_get_cnt(chatlist)
|
dc_chatlist::dc_chatlist_get_cnt(chatlist)
|
||||||
}
|
}
|
||||||
|
|
||||||
#[no_mangle]
|
#[no_mangle]
|
||||||
pub unsafe extern "C" fn dc_chatlist_get_chat_id(
|
pub unsafe extern "C" fn dc_chatlist_get_chat_id(
|
||||||
chatlist: *mut dc_chatlist::dc_chatlist_t,
|
chatlist: *mut dc_chatlist::dc_chatlist_t,
|
||||||
index: libc::c_ulong,
|
index: libc::size_t,
|
||||||
) -> libc::uint32_t {
|
) -> libc::uint32_t {
|
||||||
dc_chatlist::dc_chatlist_get_chat_id(chatlist, index)
|
dc_chatlist::dc_chatlist_get_chat_id(chatlist, index)
|
||||||
}
|
}
|
||||||
@@ -822,7 +822,7 @@ pub unsafe extern "C" fn dc_chatlist_get_chat_id(
|
|||||||
#[no_mangle]
|
#[no_mangle]
|
||||||
pub unsafe extern "C" fn dc_chatlist_get_msg_id(
|
pub unsafe extern "C" fn dc_chatlist_get_msg_id(
|
||||||
chatlist: *mut dc_chatlist::dc_chatlist_t,
|
chatlist: *mut dc_chatlist::dc_chatlist_t,
|
||||||
index: libc::c_ulong,
|
index: libc::size_t,
|
||||||
) -> libc::uint32_t {
|
) -> libc::uint32_t {
|
||||||
dc_chatlist::dc_chatlist_get_msg_id(chatlist, index)
|
dc_chatlist::dc_chatlist_get_msg_id(chatlist, index)
|
||||||
}
|
}
|
||||||
@@ -830,7 +830,7 @@ pub unsafe extern "C" fn dc_chatlist_get_msg_id(
|
|||||||
#[no_mangle]
|
#[no_mangle]
|
||||||
pub unsafe extern "C" fn dc_chatlist_get_summary(
|
pub unsafe extern "C" fn dc_chatlist_get_summary(
|
||||||
chatlist: *mut dc_chatlist::dc_chatlist_t,
|
chatlist: *mut dc_chatlist::dc_chatlist_t,
|
||||||
index: libc::c_ulong,
|
index: libc::size_t,
|
||||||
chat: *mut dc_chat::dc_chat_t,
|
chat: *mut dc_chat::dc_chat_t,
|
||||||
) -> *mut dc_lot::dc_lot_t {
|
) -> *mut dc_lot::dc_lot_t {
|
||||||
dc_chatlist::dc_chatlist_get_summary(chatlist, index, chat)
|
dc_chatlist::dc_chatlist_get_summary(chatlist, index, chat)
|
||||||
|
|||||||
Reference in New Issue
Block a user