qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 4/8] guest agent: add guest-pipe-open


From: Eric Blake
Subject: Re: [Qemu-devel] [PATCH 4/8] guest agent: add guest-pipe-open
Date: Tue, 03 Feb 2015 15:06:40 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0

On 02/03/2015 02:57 PM, Eric Blake wrote:

>> +# Returns: Guest file handle on success, as per guest-file-open. This
>> +# handle is useable with the same interfaces as a handle returned by
> 

>> +  'returns': 'int' }
> 
> I'm not a fan of returning a bare 'int' - it is not extensible.  Better
> is returning a dictionary, such as 'returns': { 'fd': 'int' }.  That
> way, if we ever find a reason to return multiple pieces of information,
> we just return a larger dictionary.
> 
> Yeah, I know guest-pipe-open breaks the rules here, and so consistency
> may be an argument in favor of also breaking the rules.

I meant to say 'guest-file-open' breaks the rules, and that you are
proposing that 'guest-pipe-open' be consistent with 'guest-file-open'.

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

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]