[libvirt] [PATCH 2/4] snapshot: s/current/parent/ as prep for virObject
Peter Krempa
pkrempa at redhat.com
Thu May 9 12:57:28 UTC 2019
On Wed, May 08, 2019 at 17:24:10 -0500, Eric Blake wrote:
> VIR_CLASS_NEW insists that descendents of virObject have 'parent' as
> the name of their inherited 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 at redhat.com>
> ---
> src/conf/snapshot_conf.h | 2 +-
> src/conf/snapshot_conf.c | 120 ++++++++++++++--------------
> src/conf/virdomainsnapshotobjlist.c | 2 +-
> src/esx/esx_driver.c | 16 ++--
> src/qemu/qemu_domain.c | 2 +-
> src/qemu/qemu_driver.c | 12 +--
> src/test/test_driver.c | 2 +-
> src/vbox/vbox_common.c | 88 ++++++++++----------
> src/vz/vz_driver.c | 2 +-
> src/vz/vz_sdk.c | 10 +--
> 10 files changed, 128 insertions(+), 128 deletions(-)
ACK
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20190509/d9bcc7b9/attachment-0001.sig>
More information about the libvir-list
mailing list