Re: [PATCH 1/8] hellolibvirt: Update hellolibvirt example

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

 



On 02/19/2013 08:17 AM, Peter Krempa wrote:
>> I originally wrote hellolibvirt because at the time (prehistoric
>> versions!) there was no good example of a trivial use of the library.
>> I think it's not a bad idea to keep it updated with modern code since
>> I'm guessing anybody looking at it probably intends to develop against
>> the version from which they got it.  I think it should illustrate the
>> most basic use of the API, so it should demonstrate best practices for
>> the functionality it implements, in this case, use the new API that
>> lists all domains rather than the two older calls and don't bother
>> with the fallback case.
> 
> I agree.
> 
> Additionally for the fallback case there's "example" code in the virsh
> source tree.

Likewise - letting hellolibvirt be best-practices only, and then adding
a comment that points to virsh as a more complicated example that shows
how to do fallback to older libvirt, seems reasonable.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
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]