The declaration of the ports in the structure is very unlike how most applications are actually written. This is completely different to the single port version also. A common interfaces is required.