Re: [PATCH] sendkey: use consistent API convention

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 06/15/2011 10:46 AM, Daniel P. Berrange wrote:
> On Wed, Jun 15, 2011 at 10:37:49AM -0600, Eric Blake wrote:
>> Even though rpc uses 'unsigned int' for the _val parameter that
>> passes the length of item<length>, the public libvirt APIs all
>> use 'int' and filter out lengths < 0, except for virDomainSendKey.
>>
>> * include/libvirt/libvirt.h.in (virDomainSendKey): All other APIs
>> use int for array length.
>> * src/libvirt.c (virDomainSendKey): Adjust.
>> * src/driver.h (virDrvDomainSendKey): Likewise.
>> * daemon/remote_generator.pl: Likewise.
>> ---
> 
> ACK,
> 
> If we were starting the API from scratch, I'd say we
> should have used 'unsigned int' everywhere. Given our
> existing practice though, we should stick with 'int'
> everywhere.

Thanks for the review; now pushed.

-- 
Eric Blake   eblake@xxxxxxxxxx    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]