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

Christophe Fergeau cfergeau at redhat.com
Sun May 5 17:45:06 UTC 2013


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 at redhat.com> 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20130505/93c82e7d/attachment-0001.sig>


More information about the libvir-list mailing list