mirror of
https://github.com/chatmail/core.git
synced 2026-05-02 21:06:31 +03:00
Merge pull request #117 from deltachat/unref-str
feat(ffi): add dc_str_unref
This commit is contained in:
@@ -1173,6 +1173,9 @@ int64_t dc_lot_get_timestamp (const dc_lot_t*);
|
|||||||
#define DC_STR_LOCATION 66
|
#define DC_STR_LOCATION 66
|
||||||
#define DC_STR_COUNT 66
|
#define DC_STR_COUNT 66
|
||||||
|
|
||||||
|
void dc_str_unref (char*);
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* @}
|
* @}
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -1538,3 +1538,8 @@ pub unsafe extern "C" fn dc_lot_get_id(lot: *mut dc_lot::dc_lot_t) -> libc::uint
|
|||||||
pub unsafe extern "C" fn dc_lot_get_timestamp(lot: *mut dc_lot::dc_lot_t) -> i64 {
|
pub unsafe extern "C" fn dc_lot_get_timestamp(lot: *mut dc_lot::dc_lot_t) -> i64 {
|
||||||
dc_lot::dc_lot_get_timestamp(lot)
|
dc_lot::dc_lot_get_timestamp(lot)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[no_mangle]
|
||||||
|
pub unsafe extern "C" fn dc_str_unref(s: *mut libc::c_char) {
|
||||||
|
libc::free(s as *mut _)
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user