#[no_mangle]
pub unsafe extern "C" fn delete_fullmac_mlme_handle(
mlme: *mut FullmacMlmeHandle,
)
Expand description
Takes ownership of and deallocates the passed FullmacMlmeHandle.
If |mlme| is non-null, this will join the FullMAC MLME thread and block the calling thread until FullMAC MLME has exited.
If the user has not called |stop_fullmac_mlme| before |delete_fullmac_mlme_handle|, this will request that the FullMAC MLME thread stop before joining thread to avoid blocking forever.
TODO(https://fxbug.dev/368323681): Consider replacing |stop_fullmac_mlme| and |delete_fullmac_mlme| with an internal FIDL protocol.
ยงSafety
This fn accepts a raw pointer that is held by the FFI caller as a handle to the MLME. This API is fundamentally unsafe, and relies on the caller to pass the correct pointer and make no further calls on it later.