[libvirt] [RFC] New API to retrieve node CPU map

Eric Blake eblake at redhat.com
Thu Oct 11 12:21:29 UTC 2012


On 10/11/2012 12:46 AM, Viktor Mihajlovski wrote:
> On 10/10/2012 11:23 PM, Eric Blake wrote:
>>
>> Are you interested in writing patches to implement this new API, if
>> others agree with my alternate single-API signature?
>>
> 
> actually, I started to write up my proposal with the signature you
> suggested :-). A second thought was that having a function to retrieve
> the number only might be convenient here and there.

Retrieving only the number is useful, but it is also easy with a single
API - have the API return the number always, and allow the user to pass
NULL instead of the location where libvirt would normally malloc() the
result.

-- 
Eric Blake   eblake at 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: 617 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20121011/4b95a3b6/attachment-0001.sig>


More information about the libvir-list mailing list