[libvirt] [PATCH] libvirt-override: fix flags mutually exclusize

Eric Blake eblake at redhat.com
Fri Feb 17 16:20:34 UTC 2017


On 02/17/2017 08:26 AM, Daniel P. Berrange wrote:

> It isn't that simple - this isn't a mere matter of checking data. The use
> of the getters during the setter method is a fundamental requirement. At
> the C layer we have many distinct data types - eg int, unsigned int,
> long long, unsigned long long, which all map to the same python data
> type.
> 

Is it worth improving the C code to do relaxed parsing (if the C type is
int, but the caller passes a long long with a value that fits in an int,
to accept the caller instead of rejecting it as a type mismatch)?

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 604 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20170217/da56a77a/attachment-0001.sig>


More information about the libvir-list mailing list