Re: [libvirt-glib 3/3] gconfig: Add GVirConfigDomainSnapshot getters/setters

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

 



On Fri, May 03, 2013 at 07:01:11PM +0200, Christophe Fergeau wrote:
> On Thu, May 02, 2013 at 06:33:44PM +0300, Zeeshan Ali (Khattak) wrote:
> > On Wed, May 1, 2013 at 10:59 PM, Christophe Fergeau <cfergeau@xxxxxxxxxx> wrote:
> > > +
> > > +
> > > +const char *gvir_config_domain_snapshot_get_parent(GVirConfigDomainSnapshot *snapshot)
> > > +{
> > 
> > Shouldn't this be returning a GVirConfigDomainSnapshot instance?
> 
> Hmm, that's a good point, this is made a bit tricky because of the "Older
> versions of libvirt stored only a single child element, uuid". This was
> changed in 2011 for libvirt 0.9.5 by
> http://libvirt.org/git/?p=libvirt.git;a=commit;h=f609cb85ca11d6d178972e46ebeb9985bf4ccfaf
> Given that we already require libvirt 0.10.2, I'd say it's fine to ignore
> this 'older version' case.

Actually I confused _get_parent() with _get_domain(), libvirt-gconfig does
not have the list of snapshots available, so it cannot do that.
libvirt-gobject could probably do that though.

Christophe

Attachment: pgpDYGrZqyYIg.pgp
Description: PGP 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]