public bool link_pads (string? srcpadname, Element dest, string? destpadname, PadLinkCheck flags = DEFAULT)
Links the two named pads of the source and destination elements.
Side effect is that if one of the pads has no parent, it becomes a child of the parent of the other element. If they have different parents, the link fails.
Calling link_pads with
DEFAULT is the same as calling
and the recommended way of linking pads with safety checks applied.
This is a convenience function for link.
a Element containing the source pad.
the name of the Pad in source element or
the Element containing the destination pad.
the name of the Pad in destination element, or
the PadLinkCheck to be performed when linking pads.