gnunet-sys 0.0.4

Rust FFI bindings for the gnunet C API.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! In this file we reimplement certain functional C macros that didn't get translated automatically.

#![allow(non_snake_case)]

use crate::bindings::*;

use std::ffi::CString;
use std::os::raw::*;



/// Frees pointers that where allocated by Gnunet
pub unsafe fn GNUNET_free( ptr: *mut c_void ) {
	let cfile = CString::new( file!() ).unwrap();

	GNUNET_xfree_( ptr, cfile.as_ptr(), line!() as _ );
}