[libvirt PATCH v2 3/5] conf: refactor virDomainResourceDefFormat