feat(ffi): add dc_str_unref

This commit is contained in:
dignifiedquire
2019-06-02 00:08:04 +02:00
parent 88519d07ca
commit 0579382173
2 changed files with 8 additions and 0 deletions

View File

@@ -1173,6 +1173,9 @@ int64_t dc_lot_get_timestamp (const dc_lot_t*);
#define DC_STR_LOCATION 66
#define DC_STR_COUNT 66
void dc_str_unref (char*);
/*
* @}
*/

View File

@@ -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 {
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 _)
}