[][src]Function mmal_sys::mmal_port_enable

pub unsafe extern "C" fn mmal_port_enable(
    port: *mut MMAL_PORT_T,
    cb: MMAL_PORT_BH_CB_T
) -> Type

Enable processing on a port

If this port is connected to another, the given callback must be NULL, while for a disconnected port, the callback must be non-NULL.

If this is a connected output port and is successfully enabled:

@param port port to enable @param cb callback use by the port to send a \ref MMAL_BUFFER_HEADER_T back @return MMAL_SUCCESS on success