]> git.ipfire.org Git - thirdparty/libvirt.git/commit
snapshot: s/current/parent/ as prep for virObject
authorEric Blake <eblake@redhat.com>
Wed, 8 May 2019 22:10:58 +0000 (17:10 -0500)
committerEric Blake <eblake@redhat.com>
Thu, 9 May 2019 14:48:07 +0000 (09:48 -0500)
commit098043eddda94bb8f00b013b5f60e6a6a4e06e9e
treed6d51397e77b2d41f1af71e4083e3675867e1986
parent36603bc568986991ea663a3e5ad47049e0e4c2bb
snapshot: s/current/parent/ as prep for virObject

VIR_CLASS_NEW insists that descendents of virObject have 'parent' as
the name of their inherited base class member at offset 0. While it
would be possible to write a new class-creation macro that takes the
actual field name 'current', and rewrite VIR_CLASS_NEW to call the new
macro with the hard-coded name 'parent', it seems less confusing if
all object code uses similar naming. Thus, this is a mechanical rename
in preparation of making virDomainSnapshotDef a descendent of
virObject.

Signed-off-by: Eric Blake <eblake@redhat.com>
Acked-by: Peter Krempa <pkrempa@redhat.com>
src/conf/snapshot_conf.c
src/conf/snapshot_conf.h
src/conf/virdomainsnapshotobjlist.c
src/esx/esx_driver.c
src/qemu/qemu_domain.c
src/qemu/qemu_driver.c
src/test/test_driver.c
src/vbox/vbox_common.c
src/vz/vz_driver.c
src/vz/vz_sdk.c