tor_progress

Function tor_progress 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn tor_progress( control_key: *mut c_char, ) -> *mut c_char
Expand description

Get bootstrap progress from tor daemon. Wait ~1s after calling tor_start() before calling this. BETA: Careful with this.

ยงSafety

  • This function is unsafe because it dereferences and a returns raw pointer.
  • ENSURE that result is passed into cstring_free(ptr: *mut c_char) after use.