]> xenbits.xensource.com Git - libvirt.git/commit
snapshot: s/parent/parent_name/ as prep for virObject
authorEric Blake <eblake@redhat.com>
Wed, 8 May 2019 16:39:13 +0000 (11:39 -0500)
committerEric Blake <eblake@redhat.com>
Thu, 9 May 2019 14:43:41 +0000 (09:43 -0500)
commit36603bc568986991ea663a3e5ad47049e0e4c2bb
tree34e0c7b357df632ecca850f760866ba91b0e9713
parent76b9aba2ba6dd90df4b7e36c99c1cf82824f8bb6
snapshot: s/parent/parent_name/ 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, and rewrite VIR_CLASS_NEW to call the new macro
with the hard-coded name 'parent', so that we could make
virDomainMomentDef use a custom name for its base class, 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, when we can no longer use 'parent' for a
different purpose than the base class.

Signed-off-by: Eric Blake <eblake@redhat.com>
Acked-by: Peter Krempa <pkrempa@redhat.com>
src/conf/moment_conf.c
src/conf/moment_conf.h
src/conf/snapshot_conf.c
src/conf/virdomainmomentobjlist.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_sdk.c