[][src]Function mmal_sys::mmal_port_disconnect

pub unsafe extern "C" fn mmal_port_disconnect(port: *mut MMAL_PORT_T) -> Type

Disconnect a connected port.

If the port is not connected, an error will be returned. Otherwise, if the ports are enabled, they will be disabled and any buffer pool created will be freed.

@param port The ports to disconnect. @return MMAL_SUCCESS on success.