[−][src]Function mmal_sys::mmal_connection_create
pub unsafe extern "C" fn mmal_connection_create(
connection: *mut *mut MMAL_CONNECTION_T,
out: *mut MMAL_PORT_T,
in_: *mut MMAL_PORT_T,
flags: u32
) -> Type
Create a connection between two ports. The connection shall include a pool of buffer headers suitable for the current format of the output port. The format of the input port shall have been set to the same as that of the input port. Note that connections are reference counted and creating a connection automatically acquires a reference to it (released when \ref mmal_connection_destroy is called).
@param connection The address of a connection pointer that will be set to point to the created connection. @param out The output port to use for the connection. @param in The input port to use for the connection. @param flags The flags specifying which type of connection should be created. A bitwise combination of \ref connectionflags "Connection flags" values. @return MMAL_SUCCESS on success.