[PATCH 18/20] virDomainDeviceInfo: Convert 'type' field to proper enum type