mirror of
https://github.com/chatmail/core.git
synced 2026-05-02 21:06:31 +03:00
add ffi to get mailinglist post address (#3520)
* add ffi to get mailinglist post address * Update deltachat-ffi/deltachat.h Co-authored-by: Hocuri <hocuri@gmx.de> * adapt tests to check get_mailinglist_addr() Co-authored-by: Hocuri <hocuri@gmx.de>
This commit is contained in:
@@ -2781,6 +2781,16 @@ pub unsafe extern "C" fn dc_chat_get_name(chat: *mut dc_chat_t) -> *mut libc::c_
|
||||
ffi_chat.chat.get_name().strdup()
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
pub unsafe extern "C" fn dc_chat_get_mailinglist_addr(chat: *mut dc_chat_t) -> *mut libc::c_char {
|
||||
if chat.is_null() {
|
||||
eprintln!("ignoring careless call to dc_chat_get_mailinglist_addr()");
|
||||
return "".strdup();
|
||||
}
|
||||
let ffi_chat = &*chat;
|
||||
ffi_chat.chat.get_mailinglist_addr().strdup()
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
pub unsafe extern "C" fn dc_chat_get_profile_image(chat: *mut dc_chat_t) -> *mut libc::c_char {
|
||||
if chat.is_null() {
|
||||
|
||||
Reference in New Issue
Block a user