@staticmethod
def _make_host_api_dictionary(index, host_api_struct):
    """
        Internal method to create Host API dictionary that mirrors
        PortAudio's ``PaHostApiInfo`` structure.

        :rtype: dict
        """
    return {'index': index, 'structVersion': host_api_struct.structVersion,
        'type': host_api_struct.type, 'name': host_api_struct.name,
        'deviceCount': host_api_struct.deviceCount, 'defaultInputDevice':
        host_api_struct.defaultInputDevice, 'defaultOutputDevice':
        host_api_struct.defaultOutputDevice}
